mirror of
https://github.com/SimpleMobileTools/Simple-Contacts.git
synced 2025-03-10 16:20:22 +01:00
remove a redundant variable
This commit is contained in:
parent
a9520c93ab
commit
b49a75b73e
@ -250,8 +250,7 @@ class ContactsAdapter(activity: SimpleActivity, var contactItems: ArrayList<Cont
|
||||
private fun setupView(view: View, contact: Contact) {
|
||||
view.apply {
|
||||
val fullName = contact.getFullName()
|
||||
val nameText = if (textToHighlight.isEmpty()) fullName else fullName.highlightTextPart(textToHighlight, adjustedPrimaryColor)
|
||||
contact_name.text = nameText
|
||||
contact_name.text = if (textToHighlight.isEmpty()) fullName else fullName.highlightTextPart(textToHighlight, adjustedPrimaryColor)
|
||||
contact_name.setTextColor(textColor)
|
||||
contact_name.setPadding(if (showContactThumbnails) smallPadding else bigPadding, smallPadding, smallPadding, 0)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user