Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 82f91963 authored by Jim Miller's avatar Jim Miller
Browse files

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
parent 156671ef
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;