mirror of
https://github.com/SimpleMobileTools/Simple-Contacts.git
synced 2025-04-01 03:50:20 +02:00
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)
|
||||
|
||||
if (showContactThumbnails) {
|
||||
val avatarName = contact.getAvatarLetterName(context)
|
||||
val placeholderImage = BitmapDrawable(resources, context.getContactLetterIcon(avatarName))
|
||||
val placeholderImage = BitmapDrawable(resources, context.getContactLetterIcon(fullName))
|
||||
if (contact.photoUri.isEmpty() && contact.photo == null) {
|
||||
contact_tmb.setImageDrawable(placeholderImage)
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user