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() } }