populate Groups tab with the contact groups

This commit is contained in:
tibbi
2018-03-19 16:44:03 +01:00
parent 707f3ee4a0
commit 796cb13c9c
16 changed files with 305 additions and 40 deletions

View File

@ -95,6 +95,7 @@ class MainActivity : SimpleActivity(), RefreshContactsListener {
if (storedShowContactThumbnails != configShowContactThumbnails) {
contacts_fragment?.showContactThumbnailsChanged(configShowContactThumbnails)
favorites_fragment?.showContactThumbnailsChanged(configShowContactThumbnails)
groups_fragment?.showContactThumbnailsChanged(configShowContactThumbnails)
}
val configTextColor = config.textColor
@ -104,6 +105,7 @@ class MainActivity : SimpleActivity(), RefreshContactsListener {
}
contacts_fragment?.textColorChanged(configTextColor)
favorites_fragment?.textColorChanged(configTextColor)
groups_fragment?.textColorChanged(configTextColor)
}
val configBackgroundColor = config.backgroundColor
@ -117,6 +119,7 @@ class MainActivity : SimpleActivity(), RefreshContactsListener {
main_tabs_holder.getTabAt(viewpager.currentItem)?.icon?.applyColorFilter(getAdjustedPrimaryColor())
contacts_fragment?.primaryColorChanged(configPrimaryColor)
favorites_fragment?.primaryColorChanged(configPrimaryColor)
groups_fragment?.primaryColorChanged(configPrimaryColor)
}
val configStartNameWithSurname = config.startNameWithSurname
@ -132,6 +135,7 @@ class MainActivity : SimpleActivity(), RefreshContactsListener {
contacts_fragment?.onActivityResume()
favorites_fragment?.onActivityResume()
groups_fragment?.onActivityResume()
refreshContacts(true, true)
}