Merge pull request #705 from qwertyfinger/qwertyfinger/fix/remove-accent-letters-from-scrollbar
Don't show letters with diacritics in the scrollbar
This commit is contained in:
commit
76c6871ca8
1 changed files with 1 additions and 1 deletions
|
|
@ -253,7 +253,7 @@ abstract class MyViewPagerFragment(context: Context, attributeSet: AttributeSet)
|
|||
}
|
||||
|
||||
val character = if (name.isNotEmpty()) name.substring(0, 1) else ""
|
||||
FastScrollItemIndicator.Text(character.toUpperCase(Locale.getDefault()))
|
||||
FastScrollItemIndicator.Text(character.normalizeString().toUpperCase(Locale.getDefault()))
|
||||
} catch (e: Exception) {
|
||||
FastScrollItemIndicator.Text("")
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue