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