explicitly set Deleted field to false at creating a new contact
This commit is contained in:
parent
0da765ddc9
commit
687f9a0086
1 changed files with 1 additions and 0 deletions
|
|
@ -1250,6 +1250,7 @@ class ContactsHelper(val context: Context) {
|
||||||
withValue(ContactsContract.RawContacts.ACCOUNT_NAME, contact.source)
|
withValue(ContactsContract.RawContacts.ACCOUNT_NAME, contact.source)
|
||||||
withValue(ContactsContract.RawContacts.ACCOUNT_TYPE, getContactSourceType(contact.source))
|
withValue(ContactsContract.RawContacts.ACCOUNT_TYPE, getContactSourceType(contact.source))
|
||||||
withValue(ContactsContract.RawContacts.DIRTY, 0)
|
withValue(ContactsContract.RawContacts.DIRTY, 0)
|
||||||
|
withValue(ContactsContract.RawContacts.DELETED, 0)
|
||||||
operations.add(build())
|
operations.add(build())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue