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 }