show some contacts details immediately, the rest just later

This commit is contained in:
tibbi 2019-10-28 16:45:47 +01:00
parent 3f4242650b
commit 4d63dc06c3
1 changed files with 23 additions and 12 deletions

View File

@ -205,7 +205,20 @@ class ViewContactActivity : ContactActivity() {
ContactsHelper(this).getContactSources {
contactSources = it
runOnUiThread {
setupContactDetails()
getDuplicateContacts {
setupContactDetails()
}
}
}
}
private fun setupContactDetails() {
if (isFinishing || isDestroyed) {
return
}
setupPhoneNumbers()
setupEmails()
setupAddresses()
@ -218,8 +231,6 @@ class ViewContactActivity : ContactActivity() {
setupOrganization()
updateTextColors(contact_scrollview)
}
}
}
private fun launchEditContact(contact: Contact) {
wasEditLaunched = true