From 73d2c01ebd41a78dce0a7fa6fc006a7f672d570e Mon Sep 17 00:00:00 2001 From: kunfei Date: Mon, 19 Aug 2019 14:36:58 +0800 Subject: [PATCH] up --- .../main/java/io/legado/app/ui/bookinfo/BookInfoActivity.kt | 5 +++++ 1 file changed, 5 insertions(+) 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) {