set the DIRTY flag to true at creating new contacts

This commit is contained in:
tibbi 2018-10-15 14:57:38 +02:00
parent 073e759cac
commit 8023bef5f6
1 changed files with 1 additions and 0 deletions

View File

@ -1207,6 +1207,7 @@ class ContactsHelper(val activity: Activity) {
ContentProviderOperation.newInsert(ContactsContract.RawContacts.CONTENT_URI).apply { ContentProviderOperation.newInsert(ContactsContract.RawContacts.CONTENT_URI).apply {
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, true)
operations.add(build()) operations.add(build())
} }