From 8158da607c61ddd42b6151f6ec16d655456a4186 Mon Sep 17 00:00:00 2001 From: kunfei Date: Sun, 23 Feb 2020 11:31:20 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/io/legado/app/ui/book/read/ReadBookActivity.kt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/io/legado/app/ui/book/read/ReadBookActivity.kt b/app/src/main/java/io/legado/app/ui/book/read/ReadBookActivity.kt index a04ab024f..2e7fa5bde 100644 --- a/app/src/main/java/io/legado/app/ui/book/read/ReadBookActivity.kt +++ b/app/src/main/java/io/legado/app/ui/book/read/ReadBookActivity.kt @@ -405,8 +405,10 @@ class ReadBookActivity : VMBaseActivity(R.layout.activity_boo */ override fun onMenuItemSelected(item: MenuItemImpl): Boolean { when (item.itemId) { - R.id.menu_replace -> ReplaceEditDialog - .show(supportFragmentManager, pattern = selectedText) + R.id.menu_replace -> { + ReplaceEditDialog.show(supportFragmentManager, pattern = selectedText) + return true + } } return false }