优化
This commit is contained in:
@@ -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()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user