From 82f91963188fd87aae0b35dd0f01ab95d5bb5fd3 Mon Sep 17 00:00:00 2001 From: Jim Miller Date: Tue, 24 Jul 2012 13:33:08 -0700 Subject: Fix 5608959: Make keyguard follow user setting for orientation This fixes a bug where keyguard would always change orientation when enabled from config_enableLockScreenRotation. Now it follows the user preference. Change-Id: I0437d11e1984d22cdadddc57deb47d800fb86aa1 --- policy/src/com/android/internal/policy/impl/KeyguardViewManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/policy/src/com/android/internal/policy/impl/KeyguardViewManager.java b/policy/src/com/android/internal/policy/impl/KeyguardViewManager.java index 504bb63..fb6ff24 100644 --- a/policy/src/com/android/internal/policy/impl/KeyguardViewManager.java +++ b/policy/src/com/android/internal/policy/impl/KeyguardViewManager.java @@ -147,7 +147,7 @@ public class KeyguardViewManager implements KeyguardWindowController { if (enableScreenRotation) { if (DEBUG) Log.d(TAG, "Rotation sensor for lock screen On!"); - mWindowLayoutParams.screenOrientation = ActivityInfo.SCREEN_ORIENTATION_SENSOR; + mWindowLayoutParams.screenOrientation = ActivityInfo.SCREEN_ORIENTATION_USER; } else { if (DEBUG) Log.d(TAG, "Rotation sensor for lock screen Off!"); mWindowLayoutParams.screenOrientation = ActivityInfo.SCREEN_ORIENTATION_NOSENSOR; -- cgit v1.1