Keep manual reader position while TTS is paused
This commit is contained in:
@@ -845,10 +845,13 @@ 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)
|
||||||
}
|
}
|
||||||
state.viewer?.refreshCurrentPage()
|
if (ttsState.playing || targetPageIsVisible) {
|
||||||
|
state.viewer?.refreshCurrentPage()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user