updating commons, handle SimpleContact having multiple numbers

This commit is contained in:
tibbi
2020-07-12 15:50:57 +02:00
parent ae9eb4f320
commit cdd9efe4e9
8 changed files with 9 additions and 9 deletions

View File

@ -74,7 +74,7 @@ class CallManager {
val privateCursor = context.getMyContactsCursor().loadInBackground()
ensureBackgroundThread {
val privateContacts = MyContactsContentProvider.getSimpleContacts(context, privateCursor)
val privateContact = privateContacts.firstOrNull { it.phoneNumber == callContact.number }
val privateContact = privateContacts.firstOrNull { it.phoneNumbers.first() == callContact.number }
if (privateContact != null) {
callContact.name = privateContact.name
}