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

Commit d668fbac authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix lockscreen.rot_override precedence" into main

parents 3742654e 0e9955c3
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -287,8 +287,9 @@ public class KeyguardStateControllerImpl implements KeyguardStateController {

    @Override
    public boolean isKeyguardScreenRotationAllowed() {
        return SystemProperties.getBoolean("lockscreen.rot_override", false)
                || mContext.getResources().getBoolean(R.bool.config_enableLockScreenRotation)
        final boolean configEnabled =
                mContext.getResources().getBoolean(R.bool.config_enableLockScreenRotation);
        return SystemProperties.getBoolean("lockscreen.rot_override", configEnabled)
                || mFeatureFlags.isEnabled(LOCKSCREEN_ENABLE_LANDSCAPE);
    }