From 8023bef5f6f51fab0f6d0d56e532e60242605ee4 Mon Sep 17 00:00:00 2001 From: tibbi Date: Mon, 15 Oct 2018 14:57:38 +0200 Subject: [PATCH] set the DIRTY flag to true at creating new contacts --- .../com/simplemobiletools/contacts/helpers/ContactsHelper.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/kotlin/com/simplemobiletools/contacts/helpers/ContactsHelper.kt b/app/src/main/kotlin/com/simplemobiletools/contacts/helpers/ContactsHelper.kt index 88e3b7d7..ae98ea2e 100644 --- a/app/src/main/kotlin/com/simplemobiletools/contacts/helpers/ContactsHelper.kt +++ b/app/src/main/kotlin/com/simplemobiletools/contacts/helpers/ContactsHelper.kt @@ -1207,6 +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) operations.add(build()) }