diff --git a/app/src/main/kotlin/com/simplemobiletools/contacts/helpers/VcfExporter.kt b/app/src/main/kotlin/com/simplemobiletools/contacts/helpers/VcfExporter.kt index e948258d..f539e0d3 100644 --- a/app/src/main/kotlin/com/simplemobiletools/contacts/helpers/VcfExporter.kt +++ b/app/src/main/kotlin/com/simplemobiletools/contacts/helpers/VcfExporter.kt @@ -124,12 +124,12 @@ class VcfExporter { } if (contact.groups.size > 0) { - val groupList = Categories(); + val groupList = Categories() contact.groups.forEach { - groupList.getValues().add(it.title); + groupList.values.add(it.title) } - card.setCategories(groupList); + card.categories = groupList } cards.add(card) 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 d5ccc61b..6d0820a0 100644 --- a/app/src/main/kotlin/com/simplemobiletools/contacts/helpers/VcfImporter.kt +++ b/app/src/main/kotlin/com/simplemobiletools/contacts/helpers/VcfImporter.kt @@ -106,23 +106,23 @@ class VcfImporter(val activity: SimpleActivity) { val groups = ArrayList() if (ezContact.categories != null) { - val groupNames = ezContact.categories.getValues(); + val groupNames = ezContact.categories.values if (groupNames != null) { - val storedGroups = ContactsHelper(activity).getStoredGroups(); + val storedGroups = ContactsHelper(activity).getStoredGroups() groupNames.forEach { - val groupName = it; + val groupName = it val storedGroup = storedGroups.firstOrNull { it.title == groupName } if (storedGroup != null) { - groups.add(storedGroup); + groups.add(storedGroup) } else { - val newcontactGroup = activity.dbHelper.insertGroup(Group(0, groupName)); + val newcontactGroup = activity.dbHelper.insertGroup(Group(0, groupName)) if (newcontactGroup != null) - groups.add(newcontactGroup); + groups.add(newcontactGroup) } } }