avoid refreshing contact sources multiple times

This commit is contained in:
tibbi 2019-09-11 21:50:00 +02:00
parent 79cc8d028d
commit dcd546b7cb
1 changed files with 4 additions and 1 deletions

View File

@ -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 ->