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,