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() }