Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 217b1d15 authored by Roozbeh Pournader's avatar Roozbeh Pournader
Browse files

Show only up to two locales in Settings

The list could otherwise grow very long, spamming the screen.

Bug: 28872122
Change-Id: I8c4dbe659e1c088eba8b5ba1b2905b5eb8bc0229
parent c416433a
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -353,7 +353,9 @@ public class InputMethodAndLanguageSettings extends SettingsPreferenceFragment
        final LocaleList locales = LocalePicker.getLocales();
        final Locale displayLocale = Locale.getDefault();
        return LocaleHelper.toSentenceCase(
                LocaleHelper.getDisplayLocaleList(locales, displayLocale), displayLocale);
                LocaleHelper.getDisplayLocaleList(
                        locales, displayLocale, 2 /* Show up to two locales from the list */),
                displayLocale);
    }

    private void saveInputMethodSelectorVisibility(String value) {