From f1b59aee27f9211046fba6e09dc93c8a9a6c8c7a Mon Sep 17 00:00:00 2001 From: tibbi Date: Tue, 20 Mar 2018 23:27:24 +0100 Subject: [PATCH] do not apply the Contact Sources filter on GroupsFragment --- .../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 a5fe3b28..1adc2d25 100644 --- a/app/src/main/kotlin/com/simplemobiletools/contacts/fragments/MyViewPagerFragment.kt +++ b/app/src/main/kotlin/com/simplemobiletools/contacts/fragments/MyViewPagerFragment.kt @@ -95,7 +95,9 @@ abstract class MyViewPagerFragment(context: Context, attributeSet: AttributeSet) contacts.sort() allContacts = contacts - val filtered = if (this is FavoritesFragment) { + val filtered = if (this is GroupsFragment) { + contacts + } else if (this is FavoritesFragment) { contacts.filter { it.starred == 1 } as ArrayList } else { val contactSources = config.displayContactSources