Use recipient display name in recipient bottom sheet.

fork-5.53.8
Alan Evans 2020-06-12 11:46:51 -03:00 zatwierdzone przez Greyson Parrelli
rodzic 93c390c4fc
commit b3a59c3946
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -119,7 +119,7 @@ public final class RecipientBottomSheetDialogFragment extends BottomSheetDialogF
viewModel.getRecipient().observe(getViewLifecycleOwner(), recipient -> {
avatar.setRecipient(recipient);
String name = recipient.getProfileName().toString();
String name = recipient.getDisplayName(requireContext());
fullName.setText(name);
fullName.setVisibility(TextUtils.isEmpty(name) ? View.GONE : View.VISIBLE);