avoid unnecessary contact screen redrawing

This commit is contained in:
tibbi 2021-03-04 19:15:45 +01:00
parent b888e24012
commit b38e00c5b8
1 changed files with 3 additions and 1 deletions

View File

@ -196,11 +196,13 @@ class ViewContactActivity : ContactActivity() {
runOnUiThread { runOnUiThread {
setupContactDetails() setupContactDetails()
getDuplicateContacts { getDuplicateContacts {
if (duplicateContacts.isNotEmpty()) {
setupContactDetails() setupContactDetails()
} }
} }
} }
} }
}
private fun setupContactDetails() { private fun setupContactDetails() {
if (isFinishing || isDestroyed || contact == null) { if (isFinishing || isDestroyed || contact == null) {