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

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

Loading…
Cancel
Save