show some contacts details immediately, the rest just later
This commit is contained in:
parent
3f4242650b
commit
4d63dc06c3
|
@ -205,22 +205,33 @@ class ViewContactActivity : ContactActivity() {
|
|||
|
||||
ContactsHelper(this).getContactSources {
|
||||
contactSources = it
|
||||
getDuplicateContacts {
|
||||
setupPhoneNumbers()
|
||||
setupEmails()
|
||||
setupAddresses()
|
||||
setupIMs()
|
||||
setupEvents()
|
||||
setupWebsites()
|
||||
setupGroups()
|
||||
setupContactSources()
|
||||
setupNotes()
|
||||
setupOrganization()
|
||||
updateTextColors(contact_scrollview)
|
||||
runOnUiThread {
|
||||
setupContactDetails()
|
||||
getDuplicateContacts {
|
||||
setupContactDetails()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private fun setupContactDetails() {
|
||||
if (isFinishing || isDestroyed) {
|
||||
return
|
||||
}
|
||||
|
||||
setupPhoneNumbers()
|
||||
setupEmails()
|
||||
setupAddresses()
|
||||
setupIMs()
|
||||
setupEvents()
|
||||
setupWebsites()
|
||||
setupGroups()
|
||||
setupContactSources()
|
||||
setupNotes()
|
||||
setupOrganization()
|
||||
updateTextColors(contact_scrollview)
|
||||
}
|
||||
|
||||
private fun launchEditContact(contact: Contact) {
|
||||
wasEditLaunched = true
|
||||
editContact(contact)
|
||||
|
|
Loading…
Reference in New Issue