mirror of
https://github.com/SimpleMobileTools/Simple-Dialer.git
synced 2025-06-05 21:49:23 +02:00
Fixed display for starting with surname (#544)
This commit is contained in:
@ -101,7 +101,7 @@ class RecentsHelper(private val context: Context) {
|
||||
val curNumber = contact.phoneNumbers.first().normalizedNumber
|
||||
if (curNumber.length >= COMPARABLE_PHONE_NUMBER_LENGTH) {
|
||||
if (curNumber.substring(curNumber.length - COMPARABLE_PHONE_NUMBER_LENGTH) == normalizedNumber.substring(normalizedNumber.length - COMPARABLE_PHONE_NUMBER_LENGTH)) {
|
||||
contactsNumbersMap[number] = contact.name
|
||||
contactsNumbersMap[number] = contact.getNameToDisplay()
|
||||
return@firstOrNull true
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user