merge accented characters with casual ones at the side letterscrollbar

This commit is contained in:
tibbi 2021-08-17 15:13:28 +02:00
parent b36fb1a6a6
commit dc951a38db
2 changed files with 2 additions and 2 deletions

View File

@ -119,7 +119,7 @@ class ContactsFragment(context: Context, attributeSet: AttributeSet) : MyViewPag
try {
val name = contacts[position].name
val character = if (name.isNotEmpty()) name.substring(0, 1) else ""
FastScrollItemIndicator.Text(character.toUpperCase(Locale.getDefault()))
FastScrollItemIndicator.Text(character.toUpperCase(Locale.getDefault()).normalizeString())
} catch (e: Exception) {
FastScrollItemIndicator.Text("")
}

View File

@ -112,7 +112,7 @@ class FavoritesFragment(context: Context, attributeSet: AttributeSet) : MyViewPa
try {
val name = contacts[position].name
val character = if (name.isNotEmpty()) name.substring(0, 1) else ""
FastScrollItemIndicator.Text(character.toUpperCase(Locale.getDefault()))
FastScrollItemIndicator.Text(character.toUpperCase(Locale.getDefault()).normalizeString())
} catch (e: Exception) {
FastScrollItemIndicator.Text("")
}