From e4784e620088ff659e185f93a73a6df7a6587815 Mon Sep 17 00:00:00 2001 From: kunfei Date: Sat, 24 Aug 2019 18:40:07 +0800 Subject: [PATCH] up --- .../java/io/legado/app/ui/readbook/ReadBookActivity.kt | 8 +++----- 1 file changed, 3 insertions(+), 5 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 235ef4d2e..dfbe83e85 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 @@ -33,10 +33,8 @@ import kotlinx.android.synthetic.main.view_book_page.* import kotlinx.android.synthetic.main.view_read_menu.* import kotlinx.android.synthetic.main.view_title_bar.* import kotlinx.coroutines.launch -import org.jetbrains.anko.alert +import org.jetbrains.anko.* import org.jetbrains.anko.sdk27.listeners.onClick -import org.jetbrains.anko.startActivity -import org.jetbrains.anko.startActivityForResult class ReadBookActivity : VMBaseActivity(R.layout.activity_read_book), PageView.CallBack, @@ -318,10 +316,10 @@ class ReadBookActivity : VMBaseActivity(R.layout.activity_rea alert { title = getString(R.string.add_to_shelf) message = getString(R.string.check_add_bookshelf, it.name) - positiveButton(R.string.yes) { + okButton { viewModel.inBookshelf = true } - negativeButton(R.string.no) { + noButton { viewModel.removeFromBookshelf { super.finish() }