This commit is contained in:
kunfei
2023-03-14 09:18:17 +08:00
parent 22e6bcb21a
commit 01a07b0f3e
@@ -483,16 +483,16 @@ class BookInfoActivity :
addView(checkBox) addView(checkBox)
} }
customView { view } customView { view }
positiveButton(R.string.yes) { yesButton {
viewModel.delBook(checkBox.isChecked) { viewModel.delBook(checkBox.isChecked) {
finish() finish()
} }
} }
negativeButton(R.string.no) noButton()
} }
} else { } else {
alert(R.string.sure, R.string.sure_del) { alert(R.string.sure, R.string.sure_del) {
okButton { yesButton {
viewModel.delBook { viewModel.delBook {
upTvBookshelf() upTvBookshelf()
} }