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

Commit 4c41490c authored by Calvin Pan's avatar Calvin Pan
Browse files

Only add system language on locale page

Bug: 229044305
Test: manual
Change-Id: Ia61aadbfe38969e54861dcbeb7ac4addc5f8d3be
parent 729a22a2
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -175,8 +175,9 @@ public class LocalePickerWithRegion extends ListFragment implements SearchView.O

            // Add current system language into suggestion list
            for(LocaleStore.LocaleInfo localeInfo: LocaleStore.getSystemCurrentLocaleInfo()) {
                if (appCurrentLocale == null ||
                        !localeInfo.getLocale().equals(appCurrentLocale.getLocale())) {
                boolean isNotCurrentLocale = appCurrentLocale == null
                        || !localeInfo.getLocale().equals(appCurrentLocale.getLocale());
                if (!isForCountryMode && isNotCurrentLocale) {
                    mLocaleList.add(localeInfo);
                }
            }