mirror of
https://github.com/SimpleMobileTools/Simple-Contacts.git
synced 2025-04-24 06:27:18 +02:00
do not rely on email at letter fastscroller too early
This commit is contained in:
parent
9df550a8aa
commit
e35d07d8c6
@ -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()
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user