Show floating TTS control only in text reader
This commit is contained in:
@@ -306,7 +306,10 @@ class ReaderActivity : BaseActivity() {
|
||||
|
||||
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(
|
||||
onClick = ::toggleTts,
|
||||
modifier = Modifier
|
||||
|
||||
Reference in New Issue
Block a user