diff options
| author | 2009-06-25 12:14:53 -0700 | |
|---|---|---|
| committer | 2009-06-25 12:14:53 -0700 | |
| commit | a7251991ffb6a26e4cf23e60633c8250c78bd9df (patch) | |
| tree | a4d3b8a29e5c12a52b9325b1f28bfb3eb603040a | |
| parent | 6f21128d1fc949828b1a4c2a0023f07bfd280e2e (diff) | |
| parent | c984329d30ba23be90f0e407684ad2410a9bbfe0 (diff) | |
Merge change 5288 into donut
* changes:
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
| -rw-r--r-- | core/java/android/app/ActivityThread.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/core/java/android/app/ActivityThread.java b/core/java/android/app/ActivityThread.java index 79588eac7e50..62dc651a5aa6 100644 --- a/core/java/android/app/ActivityThread.java +++ b/core/java/android/app/ActivityThread.java @@ -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) { |