show all contacts by default

This commit is contained in:
tibbi 2017-12-30 17:36:57 +01:00
parent 09b9d954fb
commit 0b42a283c0

View File

@ -95,7 +95,11 @@ abstract class MyViewPagerFragment(context: Context, attributeSet: AttributeSet)
contacts.filter { favorites.contains(it.id.toString()) } as ArrayList<Contact>
} else {
val contactSources = config.displayContactSources
contacts.filter { contactSources.contains(it.source) } as ArrayList<Contact>
if (config.showAllContacts()) {
contacts
} else {
contacts.filter { contactSources.contains(it.source) } as ArrayList<Contact>
}
}
if (contacts.hashCode() != (fragment_list.adapter as? ContactsAdapter)?.contactItems?.hashCode()) {