From b38e00c5b884af20ce3d357d3c29db43c63900c3 Mon Sep 17 00:00:00 2001 From: tibbi Date: Thu, 4 Mar 2021 19:15:45 +0100 Subject: [PATCH] avoid unnecessary contact screen redrawing --- .../contacts/pro/activities/ViewContactActivity.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/contacts/pro/activities/ViewContactActivity.kt b/app/src/main/kotlin/com/simplemobiletools/contacts/pro/activities/ViewContactActivity.kt index 9b133ccb..25ecedcb 100644 --- a/app/src/main/kotlin/com/simplemobiletools/contacts/pro/activities/ViewContactActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/contacts/pro/activities/ViewContactActivity.kt @@ -196,7 +196,9 @@ class ViewContactActivity : ContactActivity() { runOnUiThread { setupContactDetails() getDuplicateContacts { - setupContactDetails() + if (duplicateContacts.isNotEmpty()) { + setupContactDetails() + } } } }