properly refresh contacts when thumbnail visibility changes

This commit is contained in:
tibbi
2018-01-29 16:44:36 +01:00
parent fac521babd
commit 7bf74e9e70
2 changed files with 14 additions and 5 deletions

View File

@ -77,14 +77,15 @@ class MainActivity : SimpleActivity(), RefreshContactsListener {
return
}
if (storedShowContactThumbnails != config.showContactThumbnails) {
if (storedShowPhoneNumbers != config.showPhoneNumbers) {
restartActivity()
return
}
if (storedShowPhoneNumbers != config.showPhoneNumbers) {
restartActivity()
return
val configShowContactThumbnails = config.showContactThumbnails
if (storedShowContactThumbnails != configShowContactThumbnails) {
contacts_fragment.showContactThumbnailsChanged(configShowContactThumbnails)
favorites_fragment.showContactThumbnailsChanged(configShowContactThumbnails)
}
val configTextColor = config.textColor