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.emails.any { it.value.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.organization.company, shouldNormalize).contains(text, true) ||
|
||||
getProperText(it.organization.jobPosition, shouldNormalize).contains(text, true) ||
|
||||
|
|
|
@ -194,6 +194,11 @@ class ContactsHelper(val activity: Activity) {
|
|||
}
|
||||
|
||||
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()
|
||||
size = events.size()
|
||||
|
|
Loading…
Reference in New Issue