diff --git a/app/src/main/kotlin/com/simplemobiletools/dialer/helpers/CallManager.kt b/app/src/main/kotlin/com/simplemobiletools/dialer/helpers/CallManager.kt index 98da5d04..199953f3 100644 --- a/app/src/main/kotlin/com/simplemobiletools/dialer/helpers/CallManager.kt +++ b/app/src/main/kotlin/com/simplemobiletools/dialer/helpers/CallManager.kt @@ -74,7 +74,7 @@ class CallManager { val privateCursor = context.getMyContactsCursor().loadInBackground() ensureBackgroundThread { val privateContacts = MyContactsContentProvider.getSimpleContacts(context, privateCursor) - val privateContact = privateContacts.firstOrNull { it.phoneNumbers.first() == callContact.number } + val privateContact = privateContacts.firstOrNull { it.doesContainPhoneNumber(callContact.number) } if (privateContact != null) { callContact.name = privateContact.name }