Skip to content

Commit

Permalink
Add final copy for username deletion snackbar.
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-signal authored and greyson-signal committed Feb 16, 2023
1 parent 730065f commit 65bc126
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -330,12 +330,10 @@ private void onUserConfirmedUsernameDeletion() {
private void handleUsernameDeletionResult(@NonNull UsernameEditRepository.UsernameDeleteResult usernameDeleteResult) {
switch (usernameDeleteResult) {
case SUCCESS:
// TODO [alex] - Final copy
Snackbar.make(requireView(), R.string.preferences_success, Snackbar.LENGTH_SHORT).show();
Snackbar.make(requireView(), R.string.ManageProfileFragment__username_deleted, Snackbar.LENGTH_SHORT).show();
break;
case NETWORK_ERROR:
// TODO [alex] - Final copy
Snackbar.make(requireView(), R.string.error, Snackbar.LENGTH_SHORT).show();
Snackbar.make(requireView(), R.string.ManageProfileFragment__couldnt_delete_username, Snackbar.LENGTH_SHORT).show();
break;
}
}
Expand Down
4 changes: 4 additions & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -954,6 +954,10 @@
<string name="ManageProfileFragment__username_created">Username created</string>
<!-- Snackbar message after copying username -->
<string name="ManageProfileFragment__username_copied">Username copied</string>
<!-- Snackbar message after network failure while trying to delete username -->
<string name="ManageProfileFragment__couldnt_delete_username">Couldn\'t delete username. Try again later.</string>
<!-- Snackbar message after successful deletion of username -->
<string name="ManageProfileFragment__username_deleted">Username deleted</string>


<!-- ManageRecipientActivity -->
Expand Down

0 comments on commit 65bc126

Please sign in to comment.