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

Commit 6e3212a3 authored by Jim Miller's avatar Jim Miller Committed by Android (Google) Code Review
Browse files

Merge "Fix 3329600: Always enable screen rotation in lockscreen." into honeycomb

parents f2bc4ee9 e28016c2
Loading
Loading
Loading
Loading
+6 −8
Original line number Diff line number Diff line
@@ -114,14 +114,12 @@ public class KeyguardViewManager implements KeyguardWindowController {
            lp.softInputMode = WindowManager.LayoutParams.SOFT_INPUT_ADJUST_PAN;
            lp.windowAnimations = com.android.internal.R.style.Animation_LockScreen;

            if (mContext.getResources().getBoolean(R.bool.config_enableLockScreenRotation)) {
                Log.d(TAG, "Rotation sensor for lock screen On!");
            // TODO: Sometimes we get the wrong value for the sensor resource we use to configure
            // this.  However, the current UI design has LockScreen always respond to orientation so
            // we don't need this for the time-being.
            //
            // For reference, the configuration variable is R.bool.config_enableLockScreenRotation
            lp.screenOrientation = ActivityInfo.SCREEN_ORIENTATION_SENSOR;
            } else {
                Log.d(TAG, "Rotation sensor for lock screen Off!");
                lp.screenOrientation = ActivityInfo.SCREEN_ORIENTATION_NOSENSOR;
            }

            lp.setTitle("Keyguard");
            mWindowLayoutParams = lp;