properly handle the letter fastscroller on smaller devices

This commit is contained in:
tibbi 2021-02-15 12:53:43 +01:00
parent fc6bf05083
commit 53c08d31f9
2 changed files with 3 additions and 4 deletions

View file

@ -60,7 +60,7 @@ dependencies {
implementation 'com.simplemobiletools:commons:5.33.30'
implementation 'joda-time:joda-time:2.10.1'
implementation 'com.googlecode.ez-vcard:ez-vcard:0.10.5'
implementation 'com.github.tibbi:IndicatorFastScroll:c7ef0c82e5'
implementation 'com.github.tibbi:IndicatorFastScroll:c3de1d040a'
implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'
kapt "androidx.room:room-compiler:2.2.6"

View file

@ -83,17 +83,16 @@ abstract class MyViewPagerFragment(context: Context, attributeSet: AttributeSet)
}
}
context.updateTextColors(fragment_wrapper.parent as ViewGroup)
fragment_fastscroller?.updatePrimaryColor()
fragment_fastscroller?.updateBubblePrimaryColor()
fragment_placeholder_2?.setTextColor(adjustedPrimaryColor)
letter_fastscroller?.textColor = textColor.getColorStateList()
letter_fastscroller?.pressedTextColor = adjustedPrimaryColor
letter_fastscroller_thumb?.fontSize = context.getTextSize()
letter_fastscroller_thumb?.textColor = adjustedPrimaryColor.getContrastColor()
letter_fastscroller_thumb?.thumbColor = adjustedPrimaryColor.getColorStateList()
context.updateTextColors(fragment_wrapper.parent as ViewGroup)
fragment_placeholder_2?.setTextColor(adjustedPrimaryColor)
}
fun startNameWithSurnameChanged(startNameWithSurname: Boolean) {