diff --git a/app/src/main/kotlin/com/simplemobiletools/contacts/pro/helpers/VcfExporter.kt b/app/src/main/kotlin/com/simplemobiletools/contacts/pro/helpers/VcfExporter.kt index 127e34f2..432c06a1 100644 --- a/app/src/main/kotlin/com/simplemobiletools/contacts/pro/helpers/VcfExporter.kt +++ b/app/src/main/kotlin/com/simplemobiletools/contacts/pro/helpers/VcfExporter.kt @@ -51,6 +51,12 @@ class VcfExporter { val cards = ArrayList() for (contact in contacts) { val card = VCard() + + val formattedName = arrayOf(contact.prefix, contact.firstName, contact.middleName, contact.surname, contact.suffix) + .filter { it.isNotEmpty() } + .joinToString(separator = " ") + card.formattedName = FormattedName(formattedName) + StructuredName().apply { prefixes.add(contact.prefix) given = contact.firstName