ensure proper letter placeholder at contacts

This commit is contained in:
tibbi 2020-04-16 16:31:35 +02:00
parent 93b7ef3343
commit 3e78be6e88
1 changed files with 1 additions and 2 deletions

View File

@ -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 {