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:
Tibor Kaputa 2021-08-17 15:18:21 +02:00 committed by GitHub
commit 76c6871ca8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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