From 9437f279a5ee7598a5a296eb9f58085ce9cbd5ab Mon Sep 17 00:00:00 2001 From: Agnieszka C <85929121+Aga-C@users.noreply.github.com> Date: Sun, 23 Jan 2022 18:04:50 +0100 Subject: [PATCH] Fixed opening private contacts not working in Simple Dialer --- .../contacts/pro/helpers/LocalContactsHelper.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/contacts/pro/helpers/LocalContactsHelper.kt b/app/src/main/kotlin/com/simplemobiletools/contacts/pro/helpers/LocalContactsHelper.kt index 4cf73ee5..5ddff7f0 100644 --- a/app/src/main/kotlin/com/simplemobiletools/contacts/pro/helpers/LocalContactsHelper.kt +++ b/app/src/main/kotlin/com/simplemobiletools/contacts/pro/helpers/LocalContactsHelper.kt @@ -136,7 +136,7 @@ class LocalContactsHelper(val context: Context) { } return getEmptyLocalContact().apply { - id = if (contact.id == 0) null else contact.id + id = if (contact.id <= FIRST_CONTACT_ID) null else contact.id prefix = contact.prefix firstName = contact.firstName middleName = contact.middleName