删除确认对话框+1

This commit is contained in:
renhaoting 2025-11-03 14:25:55 +08:00
parent 19cd98cea5
commit a792dddc7c
1 changed files with 7 additions and 2 deletions

View File

@ -49,10 +49,15 @@ fun Activity.showConfirmDialog(
dialog.binding.run {
setOnClick(ivTop, tvRight, tvLeft) {
when (this) {
tvRight -> bottomRightClick?.invoke()
tvLeft -> {
dialog.dismiss()
}
tvRight -> {
bottomRightClick?.invoke()
dialog.dismiss()
}
ivTop -> topBtnClick?.invoke()
}
dialog.dismiss()
}
if (dialogBg != null) root.background = getDrawable(dialogBg)