Only add system language on locale page
Bug: 229044305 Test: manual Change-Id: Ia61aadbfe38969e54861dcbeb7ac4addc5f8d3be
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user