mirror of
https://github.com/SimpleMobileTools/Simple-Contacts.git
synced 2025-02-17 03:51:03 +01:00
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…
x
Reference in New Issue
Block a user