am 78db8500: am 2c37f7b4: Merge "Synchronize access to Locked methods. DO NOT MERGE" into jb-mr1.1-dev
* commit '78db850049b2312a82f408373d22c83c5ad8fa56': Synchronize access to Locked methods. DO NOT MERGE
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user