Don't show letters with diacritics in the scrollbar

This commit is contained in:
Andrii Chubko 2021-08-17 16:14:09 +03:00
parent 36789cf8eb
commit c45ccd09b0
1 changed files with 1 additions and 1 deletions

View File

@ -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("")
}