From c40ad7f86c288521376edce024c8b8fc0d6da676 Mon Sep 17 00:00:00 2001 From: jubb Date: Fri, 25 Jun 2021 13:53:07 +1000 Subject: [PATCH] fix: don't dismiss on clear local when delete in progress --- .../thoughtcrime/securesms/loki/dialogs/ClearAllDataDialog.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/org/thoughtcrime/securesms/loki/dialogs/ClearAllDataDialog.kt b/app/src/main/java/org/thoughtcrime/securesms/loki/dialogs/ClearAllDataDialog.kt index 702e43ff3f..e185c2c935 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/loki/dialogs/ClearAllDataDialog.kt +++ b/app/src/main/java/org/thoughtcrime/securesms/loki/dialogs/ClearAllDataDialog.kt @@ -48,7 +48,7 @@ class ClearAllDataDialog : DialogFragment() { contentView.cancelButton.setOnClickListener { if (step == Steps.NETWORK_PROMPT) { clearAllData(false) - } else { + } else if (step != Steps.DELETING) { dismiss() } }