From c45ccd09b062755c162f6724bac62d6e5b4abbbc Mon Sep 17 00:00:00 2001 From: Andrii Chubko Date: Tue, 17 Aug 2021 16:14:09 +0300 Subject: [PATCH] Don't show letters with diacritics in the scrollbar --- .../contacts/pro/fragments/MyViewPagerFragment.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/contacts/pro/fragments/MyViewPagerFragment.kt b/app/src/main/kotlin/com/simplemobiletools/contacts/pro/fragments/MyViewPagerFragment.kt index 4f714d35..30f1010a 100644 --- a/app/src/main/kotlin/com/simplemobiletools/contacts/pro/fragments/MyViewPagerFragment.kt +++ b/app/src/main/kotlin/com/simplemobiletools/contacts/pro/fragments/MyViewPagerFragment.kt @@ -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("") }