pull/461/head
gedoor 4 years ago
parent ef33753cf6
commit dafc4598a3
  1. 6
      app/src/main/java/io/legado/app/ui/book/info/BookInfoActivity.kt

@ -51,7 +51,7 @@ class BookInfoActivity :
ChangeCoverDialog.CallBack {
private val requestCodeChapterList = 568
private val requestCodeSourceEdit = 562
private val requestCodeInfoEdit = 562
private val requestCodeRead = 432
override val viewModel: BookInfoViewModel
@ -82,7 +82,7 @@ class BookInfoActivity :
if (viewModel.inBookshelf) {
viewModel.bookData.value?.let {
startActivityForResult<BookInfoEditActivity>(
requestCodeSourceEdit,
requestCodeInfoEdit,
Pair("bookUrl", it.bookUrl)
)
}
@ -368,7 +368,7 @@ class BookInfoActivity :
override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) {
super.onActivityResult(requestCode, resultCode, data)
when (requestCode) {
requestCodeSourceEdit ->
requestCodeInfoEdit ->
if (resultCode == Activity.RESULT_OK) {
viewModel.upEditBook()
}

Loading…
Cancel
Save