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 c13da3cd7..3265d86f6 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 @@ -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( - 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() }