|
|
|
@ -274,6 +274,7 @@ class ReadBookActivity : BaseReadBookActivity(), |
|
|
|
|
} |
|
|
|
|
R.id.menu_enable_replace -> ReadBook.book?.let { |
|
|
|
|
it.setUseReplaceRule(!it.getUseReplaceRule()) |
|
|
|
|
ReadBook.saveRead() |
|
|
|
|
menu?.findItem(R.id.menu_enable_replace)?.isChecked = it.getUseReplaceRule() |
|
|
|
|
viewModel.replaceRuleChanged() |
|
|
|
|
} |
|
|
|
|