mirror of
https://github.com/SimpleMobileTools/Simple-Contacts.git
synced 2025-06-05 21:59:27 +02:00
do not rely on email at letter fastscroller too early
This commit is contained in:
@ -253,10 +253,6 @@ abstract class MyViewPagerFragment(context: Context, attributeSet: AttributeSet)
|
|||||||
else -> contact.firstName
|
else -> contact.firstName
|
||||||
}
|
}
|
||||||
|
|
||||||
if (name.isEmpty() && contact.emails.isNotEmpty()) {
|
|
||||||
name = contact.emails.first().value
|
|
||||||
}
|
|
||||||
|
|
||||||
if (name.isEmpty()) {
|
if (name.isEmpty()) {
|
||||||
name = contact.getNameToDisplay()
|
name = contact.getNameToDisplay()
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user