Merge "[Panlingual][patch] Handle onLocaleSelected."
This commit is contained in:
committed by
Android (Google) Code Review
commit
0cad38f06f
@@ -97,8 +97,7 @@ public class AppLocalePickerActivity extends SettingsBaseActivity
|
||||
|
||||
@Override
|
||||
public void onLocaleSelected(LocaleStore.LocaleInfo localeInfo) {
|
||||
// TODO(b/223090003): check localeInfo.isSystemLocale()
|
||||
if (localeInfo == null || localeInfo.getLocale() == null) {
|
||||
if (localeInfo == null || localeInfo.getLocale() == null || localeInfo.isSystemLocale()) {
|
||||
setAppDefaultLocale("");
|
||||
} else {
|
||||
setAppDefaultLocale(localeInfo.getLocale().getLanguage());
|
||||
|
Reference in New Issue
Block a user