Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| aec03c6c71 |
@@ -845,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
|
||||||
|
|||||||
Reference in New Issue
Block a user