From dafc4598a3db8c45736155352515989d0172cdf0 Mon Sep 17 00:00:00 2001 From: gedoor Date: Tue, 3 Nov 2020 08:42:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/io/legado/app/ui/book/info/BookInfoActivity.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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() }