diff --git a/packages/SystemUI/src/com/android/systemui/shade/NotificationShadeWindowControllerImpl.java b/packages/SystemUI/src/com/android/systemui/shade/NotificationShadeWindowControllerImpl.java index c9d01e9f044856a0ce051df30d43f02dcdb88f8b..c8013857e5d5624aa79fc41ae004acbf88dea9ab 100644 --- a/packages/SystemUI/src/com/android/systemui/shade/NotificationShadeWindowControllerImpl.java +++ b/packages/SystemUI/src/com/android/systemui/shade/NotificationShadeWindowControllerImpl.java @@ -267,7 +267,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); }