do not apply the Contact Sources filter on GroupsFragment

This commit is contained in:
tibbi 2018-03-20 23:27:24 +01:00
parent d583a457ff
commit f1b59aee27
1 changed files with 3 additions and 1 deletions

View File

@ -95,7 +95,9 @@ abstract class MyViewPagerFragment(context: Context, attributeSet: AttributeSet)
contacts.sort() contacts.sort()
allContacts = contacts 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<Contact> contacts.filter { it.starred == 1 } as ArrayList<Contact>
} else { } else {
val contactSources = config.displayContactSources val contactSources = config.displayContactSources