mirror of
https://github.com/gedoor/legado.git
synced 2025-08-10 00:52:30 +00:00
fix: ReadBook.durChapterIndex not changed when book.durChapterIndex change
fix https://github.com/gedoor/legado/issues/2338
This commit is contained in:
@@ -85,7 +85,10 @@ 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 {
|
||||
|
||||
Reference in New Issue
Block a user