Use recipient display name in recipient bottom sheet.
This commit is contained in:
parent
93c390c4fc
commit
b3a59c3946
1 changed files with 1 additions and 1 deletions
|
@ -119,7 +119,7 @@ public final class RecipientBottomSheetDialogFragment extends BottomSheetDialogF
|
||||||
viewModel.getRecipient().observe(getViewLifecycleOwner(), recipient -> {
|
viewModel.getRecipient().observe(getViewLifecycleOwner(), recipient -> {
|
||||||
avatar.setRecipient(recipient);
|
avatar.setRecipient(recipient);
|
||||||
|
|
||||||
String name = recipient.getProfileName().toString();
|
String name = recipient.getDisplayName(requireContext());
|
||||||
fullName.setText(name);
|
fullName.setText(name);
|
||||||
fullName.setVisibility(TextUtils.isEmpty(name) ? View.GONE : View.VISIBLE);
|
fullName.setVisibility(TextUtils.isEmpty(name) ? View.GONE : View.VISIBLE);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue