avoid overwriting contacts at fetching
This commit is contained in:
parent
409add1e79
commit
67a91aa62e
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue