mirror of
https://github.com/SimpleMobileTools/Simple-Contacts.git
synced 2025-06-05 21:59:27 +02:00
search at user IMs too
This commit is contained in:
parent
fbd58b4bb9
commit
b4d62f64aa
@ -244,6 +244,7 @@ abstract class MyViewPagerFragment(context: Context, attributeSet: AttributeSet)
|
|||||||
it.phoneNumbers.any { it.value.contains(text, true) } ||
|
it.phoneNumbers.any { it.value.contains(text, true) } ||
|
||||||
it.emails.any { it.value.contains(text, true) } ||
|
it.emails.any { it.value.contains(text, true) } ||
|
||||||
it.addresses.any { getProperText(it.value, shouldNormalize).contains(text, true) } ||
|
it.addresses.any { getProperText(it.value, shouldNormalize).contains(text, true) } ||
|
||||||
|
it.IMs.any { it.value.contains(text, true) } ||
|
||||||
getProperText(it.notes, shouldNormalize).contains(text, true) ||
|
getProperText(it.notes, shouldNormalize).contains(text, true) ||
|
||||||
getProperText(it.organization.company, shouldNormalize).contains(text, true) ||
|
getProperText(it.organization.company, shouldNormalize).contains(text, true) ||
|
||||||
getProperText(it.organization.jobPosition, shouldNormalize).contains(text, true) ||
|
getProperText(it.organization.jobPosition, shouldNormalize).contains(text, true) ||
|
||||||
|
@ -194,6 +194,11 @@ class ContactsHelper(val activity: Activity) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
val IMs = getIMs()
|
val IMs = getIMs()
|
||||||
|
size = IMs.size()
|
||||||
|
for (i in 0 until size) {
|
||||||
|
val key = IMs.keyAt(i)
|
||||||
|
contacts[key]?.IMs = IMs.valueAt(i)
|
||||||
|
}
|
||||||
|
|
||||||
val events = getEvents()
|
val events = getEvents()
|
||||||
size = events.size()
|
size = events.size()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user