avoid overwriting contacts at fetching

This commit is contained in:
tibbi 2020-06-16 22:55:27 +02:00
parent 409add1e79
commit 67a91aa62e
1 changed files with 3 additions and 1 deletions

View File

@ -178,7 +178,9 @@ class ContactsHelper(val context: Context) {
val contact = Contact(id, prefix, firstName, middleName, surname, suffix, nickname, photoUri, numbers, emails, addresses,
events, accountName, starred, contactId, thumbnailUri, null, notes, groups, organization, websites, ims)
contacts.put(id, contact)
if (contacts[id] == null) {
contacts.put(id, contact)
}
}
val phoneNumbers = getPhoneNumbers(null)