Use structured name when formatted name is empty
This commit is contained in:
parent
d95985841a
commit
8dc4687328
3 changed files with 19 additions and 16 deletions
|
|
@ -367,7 +367,7 @@ class ThreadAdapter(
|
|||
thread_mesage_attachments_holder.addView(vCardView)
|
||||
|
||||
parseVCardFromUri(context, uri) { vCards ->
|
||||
val title = vCards.firstOrNull()?.formattedName?.value
|
||||
val title = vCards.firstOrNull()?.parseNameFromVCard()
|
||||
val imageIcon = if (title != null) {
|
||||
SimpleContactsHelper(context).getContactLetterIcon(title)
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue