mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-24 02:39:55 +01:00
Show verified badge on Note to Self.
This commit is contained in:
committed by
Greyson Parrelli
parent
19381342b3
commit
6a5f5f4ffa
@@ -6,6 +6,7 @@ import android.widget.TextView
|
||||
import org.thoughtcrime.securesms.R
|
||||
import org.thoughtcrime.securesms.badges.BadgeImageView
|
||||
import org.thoughtcrime.securesms.components.AvatarImageView
|
||||
import org.thoughtcrime.securesms.components.FromTextView
|
||||
import org.thoughtcrime.securesms.recipients.Recipient
|
||||
import org.thoughtcrime.securesms.util.adapter.mapping.LayoutFactory
|
||||
import org.thoughtcrime.securesms.util.adapter.mapping.MappingAdapter
|
||||
@@ -131,7 +132,7 @@ object ContactSearchItems {
|
||||
protected val avatar: AvatarImageView = itemView.findViewById(R.id.contact_photo_image)
|
||||
protected val badge: BadgeImageView = itemView.findViewById(R.id.contact_badge)
|
||||
protected val checkbox: CheckBox = itemView.findViewById(R.id.check_box)
|
||||
protected val name: TextView = itemView.findViewById(R.id.name)
|
||||
protected val name: FromTextView = itemView.findViewById(R.id.name)
|
||||
protected val number: TextView = itemView.findViewById(R.id.number)
|
||||
protected val label: TextView = itemView.findViewById(R.id.label)
|
||||
protected val smsTag: View = itemView.findViewById(R.id.sms_tag)
|
||||
@@ -144,12 +145,7 @@ object ContactSearchItems {
|
||||
return
|
||||
}
|
||||
|
||||
if (getRecipient(model).isSelf) {
|
||||
name.setText(R.string.note_to_self)
|
||||
} else {
|
||||
name.text = getRecipient(model).getDisplayName(context)
|
||||
}
|
||||
|
||||
name.setText(getRecipient(model))
|
||||
avatar.setAvatar(getRecipient(model))
|
||||
badge.setBadgeFromRecipient(getRecipient(model))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user