|
|
@ -242,6 +242,10 @@ class BookInfoActivity : |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private fun openChapterList() { |
|
|
|
private fun openChapterList() { |
|
|
|
|
|
|
|
if (viewModel.chapterListData.value.isNullOrEmpty()) { |
|
|
|
|
|
|
|
toast(R.string.chapter_list_empty) |
|
|
|
|
|
|
|
return |
|
|
|
|
|
|
|
} |
|
|
|
viewModel.bookData.value?.let { |
|
|
|
viewModel.bookData.value?.let { |
|
|
|
startActivityForResult<ChapterListActivity>( |
|
|
|
startActivityForResult<ChapterListActivity>( |
|
|
|
requestCodeChapterList, |
|
|
|
requestCodeChapterList, |
|
|
|