mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-26 03:40:56 +01:00
Show verified badge on Note to Self.
This commit is contained in:
committed by
Greyson Parrelli
parent
19381342b3
commit
6a5f5f4ffa
@@ -83,7 +83,7 @@ public class ConversationBannerView extends ConstraintLayout {
|
||||
|
||||
public String setTitle(@NonNull Recipient recipient) {
|
||||
SpannableStringBuilder title = new SpannableStringBuilder(recipient.isSelf() ? getContext().getString(R.string.note_to_self) : recipient.getDisplayNameOrUsername(getContext()));
|
||||
if (recipient.isReleaseNotes()) {
|
||||
if (recipient.showVerified()) {
|
||||
SpanUtil.appendCenteredImageSpan(title, ContextUtil.requireDrawable(getContext(), R.drawable.ic_official_28), 28, 28);
|
||||
}
|
||||
contactTitle.setText(title);
|
||||
|
||||
@@ -105,7 +105,7 @@ public class ConversationTitleView extends RelativeLayout {
|
||||
endDrawable = DrawableUtil.tint(endDrawable, ContextCompat.getColor(getContext(), R.color.signal_inverse_transparent_80));
|
||||
}
|
||||
|
||||
if (recipient != null && recipient.isReleaseNotes()) {
|
||||
if (recipient != null && recipient.showVerified()) {
|
||||
endDrawable = ContextUtil.requireDrawable(getContext(), R.drawable.ic_official_24);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user