Do not use secondary colors for titles of unset values in manage profile fragment.

fork-5.53.8
Alex Hart 2021-11-19 09:38:14 -04:00 zatwierdzone przez Cody Henthorne
rodzic 321b85d5d0
commit ec7e73bb7c
1 zmienionych plików z 0 dodań i 4 usunięć

Wyświetl plik

@ -209,20 +209,16 @@ public class ManageProfileFragment extends LoggingFragment {
private void presentUsername(@Nullable String username) {
if (username == null || username.isEmpty()) {
usernameView.setText(R.string.ManageProfileFragment_username);
usernameView.setTextColor(requireContext().getResources().getColor(R.color.signal_text_secondary));
} else {
usernameView.setText(username);
usernameView.setTextColor(requireContext().getResources().getColor(R.color.signal_text_primary));
}
}
private void presentAbout(@Nullable String about) {
if (about == null || about.isEmpty()) {
aboutView.setText(R.string.ManageProfileFragment_about);
aboutView.setTextColor(requireContext().getResources().getColor(R.color.signal_text_secondary));
} else {
aboutView.setText(about);
aboutView.setTextColor(requireContext().getResources().getColor(R.color.signal_text_primary));
}
}