improve recent call contact detection at clicking a Recent call item
This commit is contained in:
parent
758c01ba98
commit
443cfe600f
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue