|
|
@ -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 |
|
|
|
} |
|
|
|
} |
|
|
|