diff options
| author | Suchi Amalapurapu <asuchitra@google.com> | 2009-06-24 17:02:25 -0700 |
|---|---|---|
| committer | Suchi Amalapurapu <asuchitra@google.com> | 2009-06-25 11:43:53 -0700 |
| commit | c984329d30ba23be90f0e407684ad2410a9bbfe0 (patch) | |
| tree | 40db9eb9357ae372b87a5b033b9aa34e313461c0 /core | |
| parent | 0d8b77c2453d0e597f94e39212e4bfeed8affffa (diff) | |
| download | frameworks_base-c984329d30ba23be90f0e407684ad2410a9bbfe0.zip frameworks_base-c984329d30ba23be90f0e407684ad2410a9bbfe0.tar.gz frameworks_base-c984329d30ba23be90f0e407684ad2410a9bbfe0.tar.bz2 | |
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
Diffstat (limited to 'core')
| -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 79588ea..62dc651 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) { |
