feat: 优化代码

pull/115/head
kunfei 5 years ago
parent 3a79bc8bff
commit 8158da607c
  1. 6
      app/src/main/java/io/legado/app/ui/book/read/ReadBookActivity.kt

@ -405,8 +405,10 @@ class ReadBookActivity : VMBaseActivity<ReadBookViewModel>(R.layout.activity_boo
*/ */
override fun onMenuItemSelected(item: MenuItemImpl): Boolean { override fun onMenuItemSelected(item: MenuItemImpl): Boolean {
when (item.itemId) { when (item.itemId) {
R.id.menu_replace -> ReplaceEditDialog R.id.menu_replace -> {
.show(supportFragmentManager, pattern = selectedText) ReplaceEditDialog.show(supportFragmentManager, pattern = selectedText)
return true
}
} }
return false return false
} }

Loading…
Cancel
Save