diff --git a/app/src/main/kotlin/com/simplemobiletools/contacts/pro/models/Contact.kt b/app/src/main/kotlin/com/simplemobiletools/contacts/pro/models/Contact.kt index 38191b6c..302e7d1d 100644 --- a/app/src/main/kotlin/com/simplemobiletools/contacts/pro/models/Contact.kt +++ b/app/src/main/kotlin/com/simplemobiletools/contacts/pro/models/Contact.kt @@ -108,7 +108,7 @@ data class Contact( fun getNameToDisplay(): String { val firstMiddle = "$firstName $middleName".trim() - val firstPart = if (startWithSurname) if (surname.isNotEmpty()) "$surname," else "" else firstMiddle //TODO + val firstPart = if (startWithSurname) if (surname.isNotEmpty()) "$surname," else "" else firstMiddle val lastPart = if (startWithSurname) firstMiddle else surname val suffixComma = if (suffix.isEmpty()) "" else ", $suffix" val fullName = "$prefix $firstPart $lastPart$suffixComma".trim()