From 6f6039259dc3abbee1f9651ad071b2e7b2ddb3c5 Mon Sep 17 00:00:00 2001 From: Xwite <82232510+Xwite@users.noreply.github.com> Date: Tue, 27 Sep 2022 09:16:56 +0800 Subject: [PATCH] Revert "fix #2338" (#2340) --- .../main/java/io/legado/app/ui/book/read/ReadBookViewModel.kt | 3 --- 1 file changed, 3 deletions(-) diff --git a/app/src/main/java/io/legado/app/ui/book/read/ReadBookViewModel.kt b/app/src/main/java/io/legado/app/ui/book/read/ReadBookViewModel.kt index e33bb5718..bfa935cd7 100644 --- a/app/src/main/java/io/legado/app/ui/book/read/ReadBookViewModel.kt +++ b/app/src/main/java/io/legado/app/ui/book/read/ReadBookViewModel.kt @@ -85,10 +85,7 @@ class ReadBookViewModel(application: Application) : BaseViewModel(application) { } else if (isSameBook) { if (ReadBook.curTextChapter != null) { ReadBook.callBack?.upContent(resetPageOffset = false) - } else if(ReadBook.durChapterIndex == book.durChapterIndex) { - ReadBook.loadContent(resetPageOffset = true) } else { - ReadBook.durChapterIndex = book.durChapterIndex ReadBook.loadContent(resetPageOffset = true) } } else {