avoid unnecessary contact screen redrawing
This commit is contained in:
parent
b888e24012
commit
b38e00c5b8
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue