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