avoid refreshing contact sources multiple times
This commit is contained in:
parent
79cc8d028d
commit
dcd546b7cb
1 changed files with 4 additions and 1 deletions
|
|
@ -472,7 +472,10 @@ class ViewContactActivity : ContactActivity() {
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun addContactSources() {
|
private fun addContactSources() {
|
||||||
contact_sources_holder.removeAllViews()
|
if (contact_sources_holder.childCount > 0) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
addContactSource(contact!!)
|
addContactSource(contact!!)
|
||||||
ensureBackgroundThread {
|
ensureBackgroundThread {
|
||||||
ContactsHelper(this).getContacts { contacts ->
|
ContactsHelper(this).getContacts { contacts ->
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue