|
|
|
@ -59,9 +59,6 @@ class ReadBookViewModel(application: Application) : BaseViewModel(application) { |
|
|
|
|
} |
|
|
|
|
ReadBook.loadContent(resetPageOffset = true) |
|
|
|
|
} |
|
|
|
|
if (ReadBook.inBookshelf) { |
|
|
|
|
ReadBook.saveRead() |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|
isInitFinish = true |
|
|
|
|
ReadBook.titleDate.postValue(book.name) |
|
|
|
@ -82,11 +79,11 @@ class ReadBookViewModel(application: Application) : BaseViewModel(application) { |
|
|
|
|
ReadBook.callBack?.upContent(resetPageOffset = false) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
if (ReadBook.inBookshelf) { |
|
|
|
|
ReadBook.saveRead() |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private fun loadBookInfo( |
|
|
|
|
book: Book, |
|
|
|
|