pull/32/head
kunfei 5 years ago
parent b9f4d79527
commit 73d2c01ebd
  1. 5
      app/src/main/java/io/legado/app/ui/bookinfo/BookInfoActivity.kt

@ -191,6 +191,11 @@ class BookInfoActivity : VMBaseActivity<BookInfoViewModel>(R.layout.activity_boo
override fun changeTo(book: Book) { override fun changeTo(book: Book) {
viewModel.bookData.postValue(book) viewModel.bookData.postValue(book)
if (book.tocUrl.isEmpty()) {
viewModel.loadBookInfo(book)
} else {
viewModel.loadChapter(book)
}
} }
override fun skipToChapter(index: Int) { override fun skipToChapter(index: Int) {

Loading…
Cancel
Save