From 687f9a00868a9d45cc2686501602cbfddefc1abc Mon Sep 17 00:00:00 2001 From: tibbi Date: Fri, 14 Jun 2019 21:58:44 +0200 Subject: [PATCH] explicitly set Deleted field to false at creating a new contact --- .../com/simplemobiletools/contacts/pro/helpers/ContactsHelper.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/kotlin/com/simplemobiletools/contacts/pro/helpers/ContactsHelper.kt b/app/src/main/kotlin/com/simplemobiletools/contacts/pro/helpers/ContactsHelper.kt index 0fd1ca03..403acd83 100644 --- a/app/src/main/kotlin/com/simplemobiletools/contacts/pro/helpers/ContactsHelper.kt +++ b/app/src/main/kotlin/com/simplemobiletools/contacts/pro/helpers/ContactsHelper.kt @@ -1250,6 +1250,7 @@ class ContactsHelper(val context: Context) { withValue(ContactsContract.RawContacts.ACCOUNT_NAME, contact.source) withValue(ContactsContract.RawContacts.ACCOUNT_TYPE, getContactSourceType(contact.source)) withValue(ContactsContract.RawContacts.DIRTY, 0) + withValue(ContactsContract.RawContacts.DELETED, 0) operations.add(build()) }