mirror of
https://github.com/FossifyOrg/Contacts.git
synced 2026-02-02 03:32:19 -05:00
avoid refreshing contact sources multiple times
This commit is contained in:
@@ -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 ->
|
||||
|
||||
Reference in New Issue
Block a user