set dirty to false when inserting a new account

This commit is contained in:
tibbi 2018-10-26 13:31:21 +02:00
parent 307c168eee
commit 8b919078c8
1 changed files with 1 additions and 1 deletions

View File

@ -1207,7 +1207,7 @@ class ContactsHelper(val activity: Activity) {
ContentProviderOperation.newInsert(ContactsContract.RawContacts.CONTENT_URI).apply {
withValue(ContactsContract.RawContacts.ACCOUNT_NAME, contact.source)
withValue(ContactsContract.RawContacts.ACCOUNT_TYPE, getContactSourceType(contact.source))
withValue(ContactsContract.RawContacts.DIRTY, true)
withValue(ContactsContract.RawContacts.DIRTY, false)
operations.add(build())
}