feat: 优化

pull/219/head
kunfei 5 years ago
parent 0aaf7bfe9e
commit 5282914d65
  1. 2
      app/src/main/java/io/legado/app/ui/replacerule/edit/ReplaceEditDialog.kt

@ -88,7 +88,7 @@ class ReplaceEditDialog : DialogFragment(),
override fun onMenuItemClick(item: MenuItem?): Boolean { override fun onMenuItemClick(item: MenuItem?): Boolean {
when (item?.itemId) { when (item?.itemId) {
R.id.menu_save -> { R.id.menu_save -> {
val rule = getReplaceRule(); val rule = getReplaceRule()
if (!rule.isValid()){ if (!rule.isValid()){
toast(R.string.replace_rule_invalid) toast(R.string.replace_rule_invalid)
} }

Loading…
Cancel
Save