Revert "fix #2338" (#2340)

pull/2341/head
Xwite 2 years ago committed by GitHub
parent 6fd7d4151e
commit 6f6039259d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      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 {

Loading…
Cancel
Save