Add deletion snackbar for usernames with temporary copy.
This commit is contained in:
parent
cd79dbbb82
commit
93387ec79a
1 changed files with 10 additions and 1 deletions
|
@ -324,6 +324,15 @@ public class ManageProfileFragment extends LoggingFragment {
|
|||
}
|
||||
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue