|
|
@ -221,7 +221,8 @@ class BookInfoActivity : |
|
|
|
return@onClick |
|
|
|
return@onClick |
|
|
|
} |
|
|
|
} |
|
|
|
viewModel.bookData.value?.let { |
|
|
|
viewModel.bookData.value?.let { |
|
|
|
startActivity<ChapterListActivity>( |
|
|
|
startActivityForResult<ChapterListActivity>( |
|
|
|
|
|
|
|
requestCodeChapterList, |
|
|
|
Pair("bookUrl", it.bookUrl) |
|
|
|
Pair("bookUrl", it.bookUrl) |
|
|
|
) |
|
|
|
) |
|
|
|
} |
|
|
|
} |
|
|
@ -295,7 +296,11 @@ class BookInfoActivity : |
|
|
|
requestCodeSourceEdit -> if (resultCode == Activity.RESULT_OK) { |
|
|
|
requestCodeSourceEdit -> if (resultCode == Activity.RESULT_OK) { |
|
|
|
viewModel.initData(intent) |
|
|
|
viewModel.initData(intent) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
requestCodeChapterList -> if (resultCode == Activity.RESULT_OK) { |
|
|
|
|
|
|
|
viewModel.bookData.value?.let { |
|
|
|
|
|
|
|
readBook(it) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |