do not trigger negativePressed in the advanced confirmation dialog

This commit is contained in:
tibbi 2022-03-21 21:39:36 +01:00
parent 532ca0cb07
commit c0a7aee4a7

View file

@ -19,7 +19,6 @@ class ConfirmationAdvancedDialog(
val builder = AlertDialog.Builder(activity)
.setPositiveButton(positive) { dialog, which -> positivePressed() }
.setOnCancelListener { negativePressed() }
if (negative != 0) {
builder.setNegativeButton(negative) { dialog, which -> negativePressed() }