diff options
author | Craig Mautner <cmautner@google.com> | 2012-11-13 08:27:22 -0800 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2012-11-13 08:27:22 -0800 |
commit | 2c37f7b45522d908e1ffc5e63ffccfbe4cdea34b (patch) | |
tree | 00a4e060fc519a6b6ea0a9b4e77349dc26510efb /policy/src/com/android/internal | |
parent | 03fb5698baba5686143385e0d5771d2e26d3665b (diff) | |
parent | d86159067f4feed23b5057eff726cef4a4af7f2b (diff) | |
download | frameworks_base-2c37f7b45522d908e1ffc5e63ffccfbe4cdea34b.zip frameworks_base-2c37f7b45522d908e1ffc5e63ffccfbe4cdea34b.tar.gz frameworks_base-2c37f7b45522d908e1ffc5e63ffccfbe4cdea34b.tar.bz2 |
Merge "Synchronize access to Locked methods. DO NOT MERGE" into jb-mr1.1-dev
Diffstat (limited to 'policy/src/com/android/internal')
-rw-r--r-- | policy/src/com/android/internal/policy/impl/keyguard/KeyguardViewManager.java | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/policy/src/com/android/internal/policy/impl/keyguard/KeyguardViewManager.java b/policy/src/com/android/internal/policy/impl/keyguard/KeyguardViewManager.java index 76ba811..4e8aba7 100644 --- a/policy/src/com/android/internal/policy/impl/keyguard/KeyguardViewManager.java +++ b/policy/src/com/android/internal/policy/impl/keyguard/KeyguardViewManager.java @@ -129,12 +129,19 @@ public class KeyguardViewManager { @Override protected void onConfigurationChanged(Configuration newConfig) { super.onConfigurationChanged(newConfig); - if (mKeyguardHost.getVisibility() == View.VISIBLE) { - // only propagate configuration messages if we're currently showing - maybeCreateKeyguardLocked(shouldEnableScreenRotation(), true, null); - } else { - if (DEBUG) Log.v(TAG, "onConfigurationChanged: view not visible"); - } + post(new Runnable() { + @Override + public void run() { + synchronized (KeyguardViewManager.this) { + if (mKeyguardHost.getVisibility() == View.VISIBLE) { + // only propagate configuration messages if we're currently showing + maybeCreateKeyguardLocked(shouldEnableScreenRotation(), true, null); + } else { + if (DEBUG) Log.v(TAG, "onConfigurationChanged: view not visible"); + } + } + } + }); } @Override |