Skip to content

Commit cb995a6

Browse files
committed
remove lazy, blink correction
1 parent 82f01f8 commit cb995a6

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

app/src/main/kotlin/com/simplemobiletools/contacts/pro/activities/ViewContactActivity.kt

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,7 @@ class ViewContactActivity : ContactActivity() {
4747
private var showFields = 0
4848
private var fullContact: Contact? = null // contact with all fields filled from duplicates
4949
private var duplicateInitialized = false
50-
private val mergeDuplicate: Boolean by lazy {
51-
config.mergeDuplicateContacts
52-
}
50+
private val mergeDuplicate: Boolean get() = config.mergeDuplicateContacts
5351

5452
private val COMPARABLE_PHONE_NUMBER_LENGTH = 9
5553

@@ -255,12 +253,13 @@ class ViewContactActivity : ContactActivity() {
255253
contactSources = it
256254
runOnUiThread {
257255
setupContactDetails()
258-
getDuplicateContacts {
259-
duplicateInitialized = true
260-
setupContactDetails()
261-
}
262256
}
263257
}
258+
259+
getDuplicateContacts {
260+
duplicateInitialized = true
261+
setupContactDetails()
262+
}
264263
}
265264

266265
private fun setupContactDetails() {
@@ -393,7 +392,7 @@ class ViewContactActivity : ContactActivity() {
393392
}
394393
}
395394

396-
contact_number_holder.default_toggle_icon.isVisible = duplicateInitialized && phoneNumber.isPrimary
395+
contact_number_holder.default_toggle_icon.isVisible = phoneNumber.isPrimary
397396
}
398397
}
399398
contact_numbers_image.beVisible()

0 commit comments

Comments
 (0)