From dd0cfe226c1fc970510cefc3d43b9d80daf56f91 Mon Sep 17 00:00:00 2001 From: kunfei Date: Mon, 10 Feb 2020 19:36:33 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=B9=A6=E7=B1=8D=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=E7=95=8C=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/io/legado/app/ui/book/info/BookInfoActivity.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/main/java/io/legado/app/ui/book/info/BookInfoActivity.kt b/app/src/main/java/io/legado/app/ui/book/info/BookInfoActivity.kt index 68a21a9c0..987dceb78 100644 --- a/app/src/main/java/io/legado/app/ui/book/info/BookInfoActivity.kt +++ b/app/src/main/java/io/legado/app/ui/book/info/BookInfoActivity.kt @@ -242,6 +242,10 @@ class BookInfoActivity : } private fun openChapterList() { + if (viewModel.chapterListData.value.isNullOrEmpty()) { + toast(R.string.chapter_list_empty) + return + } viewModel.bookData.value?.let { startActivityForResult( requestCodeChapterList,