Add Username UI updates.

This commit is contained in:
Alex Hart
2023-02-02 14:28:21 -04:00
committed by Nicholas Tinsley
parent 7fbfc09a89
commit cd79dbbb82
8 changed files with 60 additions and 34 deletions

View File

@@ -201,6 +201,10 @@ public class UsernameEditFragment extends LoggingFragment {
break;
}
CharSequence error = usernameInputWrapper.getError();
binding.usernameError.setVisibility(error != null ? View.VISIBLE : View.GONE);
binding.usernameError.setText(usernameInputWrapper.getError());
}
private void presentButtonState(@NonNull UsernameEditViewModel.ButtonState buttonState) {