mirror of
https://github.com/SimpleMobileTools/Simple-Contacts.git
synced 2025-01-20 19:19:21 +01:00
properly handle updating letter fastscroller related colors
This commit is contained in:
parent
e8c9958306
commit
419431247b
@ -85,11 +85,16 @@ abstract class MyViewPagerFragment(context: Context, attributeSet: AttributeSet)
|
||||
updateTextColor(color)
|
||||
}
|
||||
}
|
||||
|
||||
letter_fastscroller?.textColor = color.getColorStateList()
|
||||
}
|
||||
|
||||
fun primaryColorChanged() {
|
||||
fragment_fastscroller?.updatePrimaryColor()
|
||||
fragment_fastscroller?.updateBubblePrimaryColor()
|
||||
letter_fastscroller_thumb?.thumbColor = config.primaryColor.getColorStateList()
|
||||
letter_fastscroller_thumb?.textColor = config.primaryColor.getContrastColor()
|
||||
|
||||
(fragment_list.adapter as? ContactsAdapter)?.apply {
|
||||
adjustedPrimaryColor = context.getAdjustedPrimaryColor()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user