pull/47/head
kunfei 5 years ago
parent 539164a949
commit 071e7c4248
  1. 4
      app/src/main/java/io/legado/app/ui/book/read/ReadBookViewModel.kt

@ -51,11 +51,11 @@ class ReadBookViewModel(application: Application) : BaseViewModel(application) {
}
private fun initBook(book: Book) {
this.book = book
titleDate.postValue(book.name)
durChapterIndex = book.durChapterIndex
durPageIndex = book.durChapterPos
isLocalBook = book.origin == BookType.local
this.book = book
titleDate.postValue(book.name)
App.db.bookSourceDao().getBookSource(book.origin)?.let {
webBook = WebBook(it)
}

Loading…
Cancel
Save