From b3bd0f182bb2fcf318eebc0c43749a66168b905d Mon Sep 17 00:00:00 2001 From: tibbi Date: Sat, 27 Oct 2018 17:12:55 +0200 Subject: [PATCH] trim the user email before displaying, just to be sure --- .../kotlin/com/simplemobiletools/contacts/models/Contact.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/contacts/models/Contact.kt b/app/src/main/kotlin/com/simplemobiletools/contacts/models/Contact.kt index 6aa539fe..ae9318d3 100644 --- a/app/src/main/kotlin/com/simplemobiletools/contacts/models/Contact.kt +++ b/app/src/main/kotlin/com/simplemobiletools/contacts/models/Contact.kt @@ -87,7 +87,7 @@ data class Contact(val id: Int, var prefix: String, var firstName: String, var m val fullName = "$prefix $firstPart $lastPart$suffixComma".trim() return if (fullName.isEmpty()) { if (organization.isEmpty()) { - emails.firstOrNull()?.value ?: "" + emails.firstOrNull()?.value?.trim() ?: "" } else { var fullOrganization = if (organization.jobPosition.isEmpty()) "" else "${organization.jobPosition}, " fullOrganization += organization.company