diff --git a/app/src/main/java/io/legado/app/service/help/ReadBook.kt b/app/src/main/java/io/legado/app/service/help/ReadBook.kt index 35f668f48..782292072 100644 --- a/app/src/main/java/io/legado/app/service/help/ReadBook.kt +++ b/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() {