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

Unverified Commit 90a72d39 authored by Michael Bestas's avatar Michael Bestas
Browse files

SystemUI: Allow enabling lockscreen rotation by default

Change-Id: I710d2635eab197c32abf55b5594d3583608b2846
parent 6c8865be
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -295,7 +295,9 @@ public class NotificationShadeWindowControllerImpl implements NotificationShadeW
                Settings.System.ACCELEROMETER_ROTATION, 0) != 0;
        boolean enableLockScreenRotation =
                LineageSettings.System.getInt(mContext.getContentResolver(),
                LineageSettings.System.LOCKSCREEN_ROTATION, 0) != 0;
                LineageSettings.System.LOCKSCREEN_ROTATION,
                mContext.getResources().getBoolean(org.lineageos.platform.internal.R.bool.
                        config_lockScreenRotationEnabledByDefault) ? 1 : 0) != 0;
        return mKeyguardStateController.isKeyguardScreenRotationAllowed()
                && (enableLockScreenRotation && enableAccelerometerRotation);
    }