mirror of
https://github.com/SimpleMobileTools/Simple-Contacts.git
synced 2025-02-17 03:51:03 +01:00
remove lazy, blink correction
This commit is contained in:
parent
82f01f8551
commit
cb995a62b9
@ -47,9 +47,7 @@ class ViewContactActivity : ContactActivity() {
|
||||
private var showFields = 0
|
||||
private var fullContact: Contact? = null // contact with all fields filled from duplicates
|
||||
private var duplicateInitialized = false
|
||||
private val mergeDuplicate: Boolean by lazy {
|
||||
config.mergeDuplicateContacts
|
||||
}
|
||||
private val mergeDuplicate: Boolean get() = config.mergeDuplicateContacts
|
||||
|
||||
private val COMPARABLE_PHONE_NUMBER_LENGTH = 9
|
||||
|
||||
@ -255,12 +253,13 @@ class ViewContactActivity : ContactActivity() {
|
||||
contactSources = it
|
||||
runOnUiThread {
|
||||
setupContactDetails()
|
||||
getDuplicateContacts {
|
||||
duplicateInitialized = true
|
||||
setupContactDetails()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
getDuplicateContacts {
|
||||
duplicateInitialized = true
|
||||
setupContactDetails()
|
||||
}
|
||||
}
|
||||
|
||||
private fun setupContactDetails() {
|
||||
@ -393,7 +392,7 @@ class ViewContactActivity : ContactActivity() {
|
||||
}
|
||||
}
|
||||
|
||||
contact_number_holder.default_toggle_icon.isVisible = duplicateInitialized && phoneNumber.isPrimary
|
||||
contact_number_holder.default_toggle_icon.isVisible = phoneNumber.isPrimary
|
||||
}
|
||||
}
|
||||
contact_numbers_image.beVisible()
|
||||
|
Loading…
x
Reference in New Issue
Block a user