From c0a7aee4a74b6d8dae0e0d8c4517b2c92d358cf6 Mon Sep 17 00:00:00 2001 From: tibbi Date: Mon, 21 Mar 2022 21:39:36 +0100 Subject: [PATCH] do not trigger negativePressed in the advanced confirmation dialog --- .../commons/dialogs/ConfirmationAdvancedDialog.kt | 1 - 1 file changed, 1 deletion(-) diff --git a/commons/src/main/kotlin/com/simplemobiletools/commons/dialogs/ConfirmationAdvancedDialog.kt b/commons/src/main/kotlin/com/simplemobiletools/commons/dialogs/ConfirmationAdvancedDialog.kt index 1dff2b4c7..050795e97 100644 --- a/commons/src/main/kotlin/com/simplemobiletools/commons/dialogs/ConfirmationAdvancedDialog.kt +++ b/commons/src/main/kotlin/com/simplemobiletools/commons/dialogs/ConfirmationAdvancedDialog.kt @@ -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() }