Loading core/java/android/app/ContextImpl.java +18 −16 Original line number Diff line number Diff line Loading @@ -3481,6 +3481,7 @@ class ContextImpl extends Context { } mResources = r; if (r != null) { // only do this if the user already has more than one preferred locale if (android.content.res.Flags.defaultLocale() && r.getConfiguration().getLocales().size() > 1) { Loading @@ -3488,9 +3489,9 @@ class ContextImpl extends Context { if (getUserId() < 0) { lc = LocaleConfig.fromContextIgnoringOverride(this); } else { // This is needed because the app might have locale config overrides that need to // be read from disk in order for resources to correctly choose which values to // load. // This is needed because the app might have locale config overrides that need // to be read from disk in order for resources to correctly choose which values // to load. StrictMode.ThreadPolicy policy = StrictMode.allowThreadDiskReads(); try { lc = new LocaleConfig(this); Loading @@ -3501,6 +3502,7 @@ class ContextImpl extends Context { mResourcesManager.setLocaleConfig(lc); } } } void installSystemApplicationInfo(ApplicationInfo info, ClassLoader classLoader) { mPackageInfo.installSystemApplicationInfo(info, classLoader); Loading Loading
core/java/android/app/ContextImpl.java +18 −16 Original line number Diff line number Diff line Loading @@ -3481,6 +3481,7 @@ class ContextImpl extends Context { } mResources = r; if (r != null) { // only do this if the user already has more than one preferred locale if (android.content.res.Flags.defaultLocale() && r.getConfiguration().getLocales().size() > 1) { Loading @@ -3488,9 +3489,9 @@ class ContextImpl extends Context { if (getUserId() < 0) { lc = LocaleConfig.fromContextIgnoringOverride(this); } else { // This is needed because the app might have locale config overrides that need to // be read from disk in order for resources to correctly choose which values to // load. // This is needed because the app might have locale config overrides that need // to be read from disk in order for resources to correctly choose which values // to load. StrictMode.ThreadPolicy policy = StrictMode.allowThreadDiskReads(); try { lc = new LocaleConfig(this); Loading @@ -3501,6 +3502,7 @@ class ContextImpl extends Context { mResourcesManager.setLocaleConfig(lc); } } } void installSystemApplicationInfo(ApplicationInfo info, ClassLoader classLoader) { mPackageInfo.installSystemApplicationInfo(info, classLoader); Loading