diff --git a/app/src/main/java/io/legado/app/ui/bookinfo/BookInfoActivity.kt b/app/src/main/java/io/legado/app/ui/bookinfo/BookInfoActivity.kt index 259b0eba3..34d923d3d 100644 --- a/app/src/main/java/io/legado/app/ui/bookinfo/BookInfoActivity.kt +++ b/app/src/main/java/io/legado/app/ui/bookinfo/BookInfoActivity.kt @@ -191,6 +191,11 @@ class BookInfoActivity : VMBaseActivity(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) {