mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-21 09:20:19 +01:00
Show username in all display name locations if only option.
This commit is contained in:
committed by
Alex Hart
parent
c10c64a6a6
commit
5b2c458bcf
@@ -22,7 +22,7 @@ public class ShareSelectionMappingModel implements MappingModel<ShareSelectionMa
|
||||
String name = shareContact.getRecipientId()
|
||||
.map(Recipient::resolved)
|
||||
.map(recipient -> recipient.isSelf() ? context.getString(R.string.note_to_self)
|
||||
: recipient.getShortDisplayNameIncludingUsername(context))
|
||||
: recipient.getShortDisplayName(context))
|
||||
.orElseGet(shareContact::getNumber);
|
||||
|
||||
return isFirst ? name : context.getString(R.string.ShareActivity__comma_s, name);
|
||||
|
||||
@@ -21,7 +21,7 @@ class ShareInterstitialMappingModel extends RecipientMappingModel<ShareInterstit
|
||||
@Override
|
||||
public @NonNull String getName(@NonNull Context context) {
|
||||
String name = recipient.isSelf() ? context.getString(R.string.note_to_self)
|
||||
: recipient.getShortDisplayNameIncludingUsername(context);
|
||||
: recipient.getShortDisplayName(context);
|
||||
|
||||
return isFirst ? name : context.getString(R.string.ShareActivity__comma_s, name);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user