Skip to content

Commit 82f9196

Browse files
author
Jim Miller
committed
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
1 parent 156671e commit 82f9196

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

policy/src/com/android/internal/policy/impl/KeyguardViewManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ public synchronized void show() {
147147

148148
if (enableScreenRotation) {
149149
if (DEBUG) Log.d(TAG, "Rotation sensor for lock screen On!");
150-
mWindowLayoutParams.screenOrientation = ActivityInfo.SCREEN_ORIENTATION_SENSOR;
150+
mWindowLayoutParams.screenOrientation = ActivityInfo.SCREEN_ORIENTATION_USER;
151151
} else {
152152
if (DEBUG) Log.d(TAG, "Rotation sensor for lock screen Off!");
153153
mWindowLayoutParams.screenOrientation = ActivityInfo.SCREEN_ORIENTATION_NOSENSOR;

0 commit comments

Comments
 (0)