From 419431247bd277f0ab97315eea12a2d9777c728d Mon Sep 17 00:00:00 2001 From: tibbi Date: Sun, 3 May 2020 20:09:22 +0200 Subject: [PATCH] properly handle updating letter fastscroller related colors --- .../contacts/pro/fragments/MyViewPagerFragment.kt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/src/main/kotlin/com/simplemobiletools/contacts/pro/fragments/MyViewPagerFragment.kt b/app/src/main/kotlin/com/simplemobiletools/contacts/pro/fragments/MyViewPagerFragment.kt index 6bfca4a4..2d108fb2 100644 --- a/app/src/main/kotlin/com/simplemobiletools/contacts/pro/fragments/MyViewPagerFragment.kt +++ b/app/src/main/kotlin/com/simplemobiletools/contacts/pro/fragments/MyViewPagerFragment.kt @@ -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() }