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) {
ReadBook.clearTextChapter()
ReadBook.callBack?.upContent()
if (index != ReadBook.durChapterIndex) {
ReadBook.durChapterIndex = index
ReadBook.durChapterPos = durChapterPos
}
ReadBook.durChapterIndex = index
ReadBook.durChapterPos = durChapterPos
ReadBook.saveRead()
ReadBook.loadContent(resetPageOffset = true) {
success?.invoke()

Loading…
Cancel
Save