Show floating TTS control only in text reader
This commit is contained in:
@@ -306,7 +306,10 @@ class ReaderActivity : BaseActivity() {
|
|||||||
|
|
||||||
AppBars(state = state)
|
AppBars(state = state)
|
||||||
|
|
||||||
if (ttsState.active) {
|
val showFloatingTts = ttsState.active &&
|
||||||
|
ttsState.readerChapterId == state.currentChapter?.chapter?.id &&
|
||||||
|
state.currentChapter?.pages?.any { it is TextReaderPage } == true
|
||||||
|
if (showFloatingTts) {
|
||||||
IconButton(
|
IconButton(
|
||||||
onClick = ::toggleTts,
|
onClick = ::toggleTts,
|
||||||
modifier = Modifier
|
modifier = Modifier
|
||||||
|
|||||||
Reference in New Issue
Block a user