From bde0ad34eaccd0b3441dbc6102769de6f2f662ab Mon Sep 17 00:00:00 2001 From: tibbi Date: Sun, 8 Apr 2018 11:36:51 +0200 Subject: [PATCH] make sure Search checks contact organization too --- .../contacts/fragments/MyViewPagerFragment.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/contacts/fragments/MyViewPagerFragment.kt b/app/src/main/kotlin/com/simplemobiletools/contacts/fragments/MyViewPagerFragment.kt index 7d6fccb4..51803ece 100644 --- a/app/src/main/kotlin/com/simplemobiletools/contacts/fragments/MyViewPagerFragment.kt +++ b/app/src/main/kotlin/com/simplemobiletools/contacts/fragments/MyViewPagerFragment.kt @@ -237,7 +237,9 @@ 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 { it.value.contains(text, true) } || - it.notes.contains(text, true) + it.notes.contains(text, true) || + it.organization.company.contains(text, true) || + it.organization.jobPosition.contains(text, true) } as ArrayList Contact.sorting = config.sorting