mirror of
https://github.com/SimpleMobileTools/Simple-Contacts.git
synced 2025-02-18 20:40:46 +01:00
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() {
|
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…
x
Reference in New Issue
Block a user