Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cfb04f4c authored by Calvin Pan's avatar Calvin Pan Committed by Tom Hsu
Browse files

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 c117a89a)
parent 213b3ce4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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();
    }