Skip to content

Commit

Permalink
Fixes #1525
Browse files Browse the repository at this point in the history
  • Loading branch information
alansley committed Jun 27, 2024
1 parent e4ab1ef commit b387ee3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class ClearAllDataDialog : DialogFragment() {
RETRY_LOCAL_DELETE_ONLY_PROMPT
}

// Rather than passing a bool we'll use an enum to clarify our intent
// Rather than passing a bool around we'll use an enum to clarify our intent
private enum class DeletionScope {
DeleteLocalDataOnly,
DeleteBothLocalAndNetworkData
Expand Down Expand Up @@ -150,7 +150,7 @@ class ClearAllDataDialog : DialogFragment() {
null
}

// If one or more deletions failed inform the user and allow them to choose a local-only delete if they wish..
// If one or more deletions failed then inform the user and allow them to clear the device only if they wish..
if (deletionResultMap == null || deletionResultMap.values.any { !it } || deletionResultMap.isEmpty()) {
withContext(Dispatchers.Main) { step = Steps.RETRY_LOCAL_DELETE_ONLY_PROMPT }
}
Expand Down

0 comments on commit b387ee3

Please sign in to comment.