From 722e66e1dc286e85aa46d4bd3de70564f378346d Mon Sep 17 00:00:00 2001 From: tibbi Date: Tue, 19 Jun 2018 16:18:45 +0200 Subject: [PATCH] fix #171, properly parse contact name from vcf if whole name is 1 field --- .../com/simplemobiletools/contacts/helpers/VcfImporter.kt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/contacts/helpers/VcfImporter.kt b/app/src/main/kotlin/com/simplemobiletools/contacts/helpers/VcfImporter.kt index 85561636..44c3106d 100644 --- a/app/src/main/kotlin/com/simplemobiletools/contacts/helpers/VcfImporter.kt +++ b/app/src/main/kotlin/com/simplemobiletools/contacts/helpers/VcfImporter.kt @@ -116,7 +116,11 @@ class VcfImporter(val activity: SimpleActivity) { if (!isGettingName && currentNameIsANSI && names.endsWith('=')) { isGettingName = true } else { - parseNames() + if (names.contains(";")) { + parseNames() + } else if (names.startsWith(":")) { + curFirstName = names.substring(1) + } } }