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

Commit ad874f41 authored by Jeremy Meyer's avatar Jeremy Meyer Committed by Android (Google) Code Review
Browse files

Merge "Put retrieving the LocaleConfig at app start behind flag" into main

parents ab263c26 a1beebfc
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -3482,7 +3482,8 @@ class ContextImpl extends Context {
        mResources = r;

        // only do this if the user already has more than one preferred locale
        if (r.getConfiguration().getLocales().size() > 1) {
        if (android.content.res.Flags.defaultLocale()
                && r.getConfiguration().getLocales().size() > 1) {
            LocaleConfig lc = getUserId() < 0
                    ? LocaleConfig.fromContextIgnoringOverride(this)
                    : new LocaleConfig(this);