From 1f6523a4a4af800878ea16c1a5cf72b91d8dcbaa Mon Sep 17 00:00:00 2001 From: gedoor Date: Wed, 8 Sep 2021 22:48:28 +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 | 8 ++------ 1 file changed, 2 insertions(+), 6 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 ce9a16923..d7743a4ac 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 @@ -327,15 +327,11 @@ class BookInfoActivity : } customView { alertBinding.root } okButton { - launch(IO) { - viewModel.bookSource?.setVariable(alertBinding.editView.text?.toString()) - } + viewModel.bookSource?.setVariable(alertBinding.editView.text?.toString()) } cancelButton() neutralButton(R.string.delete) { - launch(IO) { - viewModel.bookSource?.setVariable(null) - } + viewModel.bookSource?.setVariable(null) } }.show() }