improve recent call contact detection at clicking a Recent call item

This commit is contained in:
tibbi 2018-11-30 18:09:19 +01:00
parent 758c01ba98
commit 443cfe600f
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@ class RecentsFragment(context: Context, attributeSet: AttributeSet) : MyViewPage
val recentCall = (it as RecentCall).number.normalizeNumber()
var selectedContact: Contact? = null
for (contact in allContacts) {
if (contact.phoneNumbers.any { it.normalizedNumber == recentCall }) {
if (contact.doesContainPhoneNumber(recentCall)) {
selectedContact = contact
break
}