ensure proper letter placeholder at contacts
This commit is contained in:
parent
93b7ef3343
commit
3e78be6e88
|
@ -290,8 +290,7 @@ class ContactsAdapter(activity: SimpleActivity, var contactItems: ArrayList<Cont
|
||||||
contact_tmb.beVisibleIf(showContactThumbnails)
|
contact_tmb.beVisibleIf(showContactThumbnails)
|
||||||
|
|
||||||
if (showContactThumbnails) {
|
if (showContactThumbnails) {
|
||||||
val avatarName = contact.getAvatarLetterName(context)
|
val placeholderImage = BitmapDrawable(resources, context.getContactLetterIcon(fullName))
|
||||||
val placeholderImage = BitmapDrawable(resources, context.getContactLetterIcon(avatarName))
|
|
||||||
if (contact.photoUri.isEmpty() && contact.photo == null) {
|
if (contact.photoUri.isEmpty() && contact.photo == null) {
|
||||||
contact_tmb.setImageDrawable(placeholderImage)
|
contact_tmb.setImageDrawable(placeholderImage)
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue