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

Commit 41542002 authored by kaiyiz's avatar kaiyiz
Browse files

Regional: Default language list can't be removed for carrier

When load language list, getLocaleArray() will return carrier's
overlaid language list from 'R.string.locale_codes' or default
language list to 'localeList'. But the 'Collections.addAll(localeList,
locales)' will add duplicate default list to 'localeList'.

CRs-Fixed: 757884

Change-Id: Ie728900d8d5937f4f9acdcc01fed509a7d2368ad
parent 36f88f56
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -104,7 +104,6 @@ public class LocalePicker extends ListFragment {

        String[] locales = Resources.getSystem().getAssets().getLocales();
        ArrayList<String> localeList = getLocaleArray(locales, resources);
        Collections.addAll(localeList, locales);

        // Don't show the pseudolocales unless we're in developer mode. http://b/17190407.
        if (!isInDeveloperMode) {