pull/2240/head
kunfei 2 years ago
parent e69291bcff
commit 808ce9869a
  1. 10
      app/src/main/java/io/legado/app/ui/book/local/rule/TxtTocRuleActivity.kt

@ -88,7 +88,13 @@ class TxtTocRuleActivity : VMBaseActivity<ActivityTxtTocRuleBinding, TxtTocRuleV
}
override fun del(source: TxtTocRule) {
viewModel.del(source)
alert(R.string.draw) {
setMessage(getString(R.string.sure_del) + "\n" + source.name)
noButton()
yesButton {
viewModel.del(source)
}
}
}
override fun edit(source: TxtTocRule) {
@ -151,7 +157,7 @@ class TxtTocRuleActivity : VMBaseActivity<ActivityTxtTocRuleBinding, TxtTocRuleV
private fun delSourceDialog() {
alert(titleResource = R.string.draw, messageResource = R.string.sure_del) {
okButton { viewModel.del(*adapter.selection.toTypedArray()) }
yesButton { viewModel.del(*adapter.selection.toTypedArray()) }
noButton()
}
}

Loading…
Cancel
Save