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:
Calvin Pan
2022-03-23 04:43:00 +00:00
committed by Tom Hsu
parent 213b3ce4af
commit cfb04f4c35

View File

@@ -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();
}