mirror of
https://github.com/SimpleMobileTools/Simple-Contacts.git
synced 2025-06-05 21:59:27 +02:00
show some contacts details immediately, the rest just later
This commit is contained in:
@ -205,7 +205,20 @@ class ViewContactActivity : ContactActivity() {
|
|||||||
|
|
||||||
ContactsHelper(this).getContactSources {
|
ContactsHelper(this).getContactSources {
|
||||||
contactSources = it
|
contactSources = it
|
||||||
|
runOnUiThread {
|
||||||
|
setupContactDetails()
|
||||||
getDuplicateContacts {
|
getDuplicateContacts {
|
||||||
|
setupContactDetails()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private fun setupContactDetails() {
|
||||||
|
if (isFinishing || isDestroyed) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
setupPhoneNumbers()
|
setupPhoneNumbers()
|
||||||
setupEmails()
|
setupEmails()
|
||||||
setupAddresses()
|
setupAddresses()
|
||||||
@ -218,8 +231,6 @@ class ViewContactActivity : ContactActivity() {
|
|||||||
setupOrganization()
|
setupOrganization()
|
||||||
updateTextColors(contact_scrollview)
|
updateTextColors(contact_scrollview)
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private fun launchEditContact(contact: Contact) {
|
private fun launchEditContact(contact: Contact) {
|
||||||
wasEditLaunched = true
|
wasEditLaunched = true
|
||||||
|
Reference in New Issue
Block a user