From 81d45481e67675e17cd8cd47a0e3eb43e13d1f11 Mon Sep 17 00:00:00 2001 From: kunfei Date: Tue, 27 Aug 2019 08:05:46 +0800 Subject: [PATCH] up --- .../java/io/legado/app/ui/readbook/ReadBookActivity.kt | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/app/src/main/java/io/legado/app/ui/readbook/ReadBookActivity.kt b/app/src/main/java/io/legado/app/ui/readbook/ReadBookActivity.kt index d6e91e91f..302e3246b 100644 --- a/app/src/main/java/io/legado/app/ui/readbook/ReadBookActivity.kt +++ b/app/src/main/java/io/legado/app/ui/readbook/ReadBookActivity.kt @@ -419,14 +419,8 @@ class ReadBookActivity : VMBaseActivity(R.layout.activity_rea alert { title = getString(R.string.add_to_shelf) message = getString(R.string.check_add_bookshelf, it.name) - okButton { - viewModel.inBookshelf = true - } - noButton { - viewModel.removeFromBookshelf { - super.finish() - } - } + okButton { viewModel.inBookshelf = true } + noButton { viewModel.removeFromBookshelf { super.finish() } } }.show() } else { super.finish()