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