Compare commits

...

2 Commits

Author SHA1 Message Date
BookOasis Reader aec03c6c71 Keep manual reader position while TTS is paused
Build & Test / Build & Test App (push) Has been cancelled
Update website / update_website (release) Has been cancelled
Release / Extract tag name (push) Has been cancelled
Release / Build (push) Has been cancelled
Release / Build (FOSS) (push) Has been cancelled
Release / Create GitHub Release (push) Has been cancelled
2026-09-27 09:00:49 +09:00
BookOasis Reader c9c119689d Show floating TTS control only in text reader
Build & Test / Build & Test App (push) Has been cancelled
Release / Extract tag name (push) Has been cancelled
Release / Build (push) Has been cancelled
Release / Build (FOSS) (push) Has been cancelled
Release / Create GitHub Release (push) Has been cancelled
2026-09-27 01:11:17 +09:00
@@ -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
@@ -842,11 +845,14 @@ class ReaderActivity : BaseActivity() {
} }
ttsHighlightedPage = targetPage ttsHighlightedPage = targetPage
if (state.currentPage != targetPage.index + 1) { val targetPageIsVisible = state.currentPage == targetPage.index + 1
if (ttsState.playing && !targetPageIsVisible) {
moveToPageIndex(targetPage.index) moveToPageIndex(targetPage.index)
} }
if (ttsState.playing || targetPageIsVisible) {
state.viewer?.refreshCurrentPage() state.viewer?.refreshCurrentPage()
} }
}
/** /**
* Tells the presenter to load the next chapter and mark it as active. The progress dialog * Tells the presenter to load the next chapter and mark it as active. The progress dialog