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 220328ab3..98128c2f2 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 @@ -221,7 +221,8 @@ class BookInfoActivity : return@onClick } viewModel.bookData.value?.let { - startActivity( + startActivityForResult( + requestCodeChapterList, Pair("bookUrl", it.bookUrl) ) } @@ -295,7 +296,11 @@ class BookInfoActivity : requestCodeSourceEdit -> if (resultCode == Activity.RESULT_OK) { viewModel.initData(intent) } - + requestCodeChapterList -> if (resultCode == Activity.RESULT_OK) { + viewModel.bookData.value?.let { + readBook(it) + } + } } } } \ No newline at end of file