Skip to content

Commit

Permalink
Add deletion snackbar for usernames with temporary copy.
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-signal authored and nicholas-signal committed Feb 2, 2023
1 parent cd79dbb commit 93387ec
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,15 @@ private void onUserConfirmedUsernameDeletion() {
}

private void handleUsernameDeletionResult(@NonNull UsernameEditRepository.UsernameDeleteResult usernameDeleteResult) {
// TODO [alex] -- Snackbar?
switch (usernameDeleteResult) {
case SUCCESS:
// TODO [alex] - Final copy
Snackbar.make(requireView(), R.string.preferences_success, Snackbar.LENGTH_SHORT).show();
break;
case NETWORK_ERROR:
// TODO [alex] - Final copy
Snackbar.make(requireView(), R.string.error, Snackbar.LENGTH_SHORT).show();
break;
}
}
}

0 comments on commit 93387ec

Please sign in to comment.