mirror of
https://github.com/SimpleMobileTools/Simple-Contacts.git
synced 2025-05-01 17:58:40 +02: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()
|
val recentCall = (it as RecentCall).number.normalizeNumber()
|
||||||
var selectedContact: Contact? = null
|
var selectedContact: Contact? = null
|
||||||
for (contact in allContacts) {
|
for (contact in allContacts) {
|
||||||
if (contact.phoneNumbers.any { it.normalizedNumber == recentCall }) {
|
if (contact.doesContainPhoneNumber(recentCall)) {
|
||||||
selectedContact = contact
|
selectedContact = contact
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user