1
0
mirror of https://github.com/etesync/android synced 2024-11-16 04:49:06 +00:00

Import: fix import of contacts.

This commit is contained in:
Tom Hacohen 2019-08-06 14:12:50 +01:00
parent 9018b6cdd0
commit c8a81862ea

View File

@ -158,7 +158,7 @@ class LocalContactImportFragment : Fragment() {
var localContact: LocalContact? = if (contact.uid == null)
null
else
addressBook.findByUid(contact.uid!!) as LocalContact
addressBook.findByUid(contact.uid!!) as LocalContact?
if (localContact != null) {
localContact.updateAsDirty(contact)
@ -189,7 +189,7 @@ class LocalContactImportFragment : Fragment() {
var localGroup: LocalGroup? = if (group.uid == null)
null
else
addressBook.findByUid(group.uid!!) as LocalGroup
addressBook.findByUid(group.uid!!) as LocalGroup?
if (localGroup != null) {
localGroup.updateAsDirty(group, members)