From d214367f4243427eec58293f5313674c16b82df7 Mon Sep 17 00:00:00 2001 From: Michael Bestas Date: Wed, 21 Feb 2024 00:17:41 +0200 Subject: [PATCH] SystemUI: Allow enabling lockscreen rotation by default Change-Id: I710d2635eab197c32abf55b5594d3583608b2846 --- .../systemui/shade/NotificationShadeWindowControllerImpl.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/SystemUI/src/com/android/systemui/shade/NotificationShadeWindowControllerImpl.java b/packages/SystemUI/src/com/android/systemui/shade/NotificationShadeWindowControllerImpl.java index c9d01e9f0448..c8013857e5d5 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); } -- GitLab