删除确认对话框+1
This commit is contained in:
parent
19cd98cea5
commit
a792dddc7c
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue