fix: don't dismiss on clear local when delete in progress

This commit is contained in:
jubb 2021-06-25 13:53:07 +10:00
parent 1ba12c40cc
commit c40ad7f86c

View File

@ -48,7 +48,7 @@ class ClearAllDataDialog : DialogFragment() {
contentView.cancelButton.setOnClickListener { contentView.cancelButton.setOnClickListener {
if (step == Steps.NETWORK_PROMPT) { if (step == Steps.NETWORK_PROMPT) {
clearAllData(false) clearAllData(false)
} else { } else if (step != Steps.DELETING) {
dismiss() dismiss()
} }
} }