Skip to content

Commit 8d6ff01

Browse files
spearceAndroid (Google) Code Review
authored andcommitted
Merge "Fix 5608959: Make keyguard follow user setting for orientation" into jb-dev
2 parents 0804b6d + 82f9196 commit 8d6ff01

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)