pull/78/head
kunfei 5 years ago
parent f2b5b95cc9
commit 791ff1dff9
  1. 9
      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<ChapterListActivity>(
startActivityForResult<ChapterListActivity>(
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)
}
}
}
}
}
Loading…
Cancel
Save