pull/1251/head
gedoor 3 years ago
parent f32b336ff8
commit 57e3049b43
  1. 4
      app/src/main/java/io/legado/app/service/help/ReadBook.kt

@ -80,11 +80,15 @@ object ReadBook {
} }
fun setProgress(progress: BookProgress) { fun setProgress(progress: BookProgress) {
if (durChapterIndex != progress.durChapterIndex
|| durChapterPos != progress.durChapterPos
) {
durChapterIndex = progress.durChapterIndex durChapterIndex = progress.durChapterIndex
durChapterPos = progress.durChapterPos durChapterPos = progress.durChapterPos
clearTextChapter() clearTextChapter()
loadContent(resetPageOffset = true) loadContent(resetPageOffset = true)
} }
}
fun clearTextChapter() { fun clearTextChapter() {
prevTextChapter = null prevTextChapter = null

Loading…
Cancel
Save