pull/1673/head
kunfei 3 years ago
parent 129d510aa2
commit 576f357b46
  1. 6
      app/src/main/java/io/legado/app/ui/book/read/ReadBookViewModel.kt

@ -227,10 +227,8 @@ class ReadBookViewModel(application: Application) : BaseViewModel(application) {
if (index < ReadBook.chapterSize) { if (index < ReadBook.chapterSize) {
ReadBook.clearTextChapter() ReadBook.clearTextChapter()
ReadBook.callBack?.upContent() ReadBook.callBack?.upContent()
if (index != ReadBook.durChapterIndex) { ReadBook.durChapterIndex = index
ReadBook.durChapterIndex = index ReadBook.durChapterPos = durChapterPos
ReadBook.durChapterPos = durChapterPos
}
ReadBook.saveRead() ReadBook.saveRead()
ReadBook.loadContent(resetPageOffset = true) { ReadBook.loadContent(resetPageOffset = true) {
success?.invoke() success?.invoke()

Loading…
Cancel
Save