Skip to content

Commit 443cfe6

Browse files
committed
improve recent call contact detection at clicking a Recent call item
1 parent 758c01b commit 443cfe6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/kotlin/com/simplemobiletools/contacts/pro/fragments/RecentsFragment.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ class RecentsFragment(context: Context, attributeSet: AttributeSet) : MyViewPage
5757
val recentCall = (it as RecentCall).number.normalizeNumber()
5858
var selectedContact: Contact? = null
5959
for (contact in allContacts) {
60-
if (contact.phoneNumbers.any { it.normalizedNumber == recentCall }) {
60+
if (contact.doesContainPhoneNumber(recentCall)) {
6161
selectedContact = contact
6262
break
6363
}

0 commit comments

Comments
 (0)