Fix System language option missing and locale region missing issue
- Taking app package name into LocalePickerWithRegion
- Using toLanguageTag() instead of getLanguage() to prevent locale
region missing
Bug: 226278910
Bug: 226280740
Change-Id: Ieac42616192065abc0cf82db023e4e50f1ca562d
Test: To be verified
(cherry picked from commit c117a89a53
)
This commit is contained in:
@@ -100,7 +100,7 @@ public class AppLocalePickerActivity extends SettingsBaseActivity
|
||||
if (localeInfo == null || localeInfo.getLocale() == null || localeInfo.isSystemLocale()) {
|
||||
setAppDefaultLocale("");
|
||||
} else {
|
||||
setAppDefaultLocale(localeInfo.getLocale().getLanguage());
|
||||
setAppDefaultLocale(localeInfo.getLocale().toLanguageTag());
|
||||
}
|
||||
finish();
|
||||
}
|
||||
|
Reference in New Issue
Block a user