|
|
@ -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() |
|
|
|