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 {
setupContactDetails()
getDuplicateContacts {
if (duplicateContacts.isNotEmpty()) {
setupContactDetails()
}
}
}
}
}
private fun setupContactDetails() {
if (isFinishing || isDestroyed || contact == null) {