Skip to content

Commit 53c08d3

Browse files
committed
properly handle the letter fastscroller on smaller devices
1 parent fc6bf05 commit 53c08d3

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ dependencies {
6060
implementation 'com.simplemobiletools:commons:5.33.30'
6161
implementation 'joda-time:joda-time:2.10.1'
6262
implementation 'com.googlecode.ez-vcard:ez-vcard:0.10.5'
63-
implementation 'com.github.tibbi:IndicatorFastScroll:c7ef0c82e5'
63+
implementation 'com.github.tibbi:IndicatorFastScroll:c3de1d040a'
6464
implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'
6565

6666
kapt "androidx.room:room-compiler:2.2.6"

app/src/main/kotlin/com/simplemobiletools/contacts/pro/fragments/MyViewPagerFragment.kt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,17 +83,16 @@ abstract class MyViewPagerFragment(context: Context, attributeSet: AttributeSet)
8383
}
8484
}
8585

86+
context.updateTextColors(fragment_wrapper.parent as ViewGroup)
8687
fragment_fastscroller?.updatePrimaryColor()
8788
fragment_fastscroller?.updateBubblePrimaryColor()
89+
fragment_placeholder_2?.setTextColor(adjustedPrimaryColor)
8890

8991
letter_fastscroller?.textColor = textColor.getColorStateList()
9092
letter_fastscroller?.pressedTextColor = adjustedPrimaryColor
9193
letter_fastscroller_thumb?.fontSize = context.getTextSize()
9294
letter_fastscroller_thumb?.textColor = adjustedPrimaryColor.getContrastColor()
9395
letter_fastscroller_thumb?.thumbColor = adjustedPrimaryColor.getColorStateList()
94-
95-
context.updateTextColors(fragment_wrapper.parent as ViewGroup)
96-
fragment_placeholder_2?.setTextColor(adjustedPrimaryColor)
9796
}
9897

9998
fun startNameWithSurnameChanged(startNameWithSurname: Boolean) {

0 commit comments

Comments
 (0)