Invoke getSystem.updateConfiguration when binding an application to

update config changes in Resources.mSystem
Since Resources is preloaded in the zygote, system resources in Resources
need to be updated with config changes every time an application is started
This commit is contained in:
Suchi Amalapurapu
2009-06-24 17:02:25 -07:00
parent 0d8b77c245
commit c984329d30

View File

@@ -3697,6 +3697,13 @@ public final class ActivityThread {
*/
Locale.setDefault(data.config.locale);
/*
* Update the system configuration since its preloaded and might not
* reflect configuration changes. The configuration object passed
* in AppBindData can be safely assumed to be up to date
*/
Resources.getSystem().updateConfiguration(mConfiguration, null);
data.info = getPackageInfoNoCheck(data.appInfo);
if (data.debugMode != IApplicationThread.DEBUG_OFF) {