Merge "Only add system language on locale page" into tm-dev am: 66070d7c8a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17739084 Change-Id: Ib53c02538f7b7b2bbc89a9eeaf9791654d251ff6 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -176,8 +176,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