mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-21 17:29:32 +01:00
Implement several pieces of UI polish for badges.
This commit is contained in:
committed by
Greyson Parrelli
parent
186bd9db48
commit
755ec672c0
@@ -57,7 +57,11 @@ public class ConversationBannerView extends ConstraintLayout {
|
||||
}
|
||||
|
||||
public void setBadge(@Nullable Recipient recipient) {
|
||||
contactBadge.setBadgeFromRecipient(recipient);
|
||||
if (recipient == null || recipient.isSelf()) {
|
||||
contactBadge.setBadge(null);
|
||||
} else {
|
||||
contactBadge.setBadgeFromRecipient(recipient);
|
||||
}
|
||||
}
|
||||
|
||||
public void setAvatar(@NonNull GlideRequests requests, @Nullable Recipient recipient) {
|
||||
|
||||
@@ -106,7 +106,11 @@ public class ConversationTitleView extends RelativeLayout {
|
||||
this.avatar.setAvatar(glideRequests, recipient, false);
|
||||
}
|
||||
|
||||
badge.setBadgeFromRecipient(recipient);
|
||||
if (recipient == null || recipient.isSelf()) {
|
||||
badge.setBadgeFromRecipient(null);
|
||||
} else {
|
||||
badge.setBadgeFromRecipient(recipient);
|
||||
}
|
||||
|
||||
updateVerifiedSubtitleVisibility();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user