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

Commit 56d46cc9 authored by Jorim Jaggi's avatar Jorim Jaggi Committed by Android (Google) Code Review
Browse files

Merge "Fix global screen rotation issue."

parents b91dfd95 ca36cf7b
Loading
Loading
Loading
Loading
+7 −3
Original line number Diff line number Diff line
@@ -99,11 +99,15 @@ public class StatusBarWindowManager {
    }

    private void adjustScreenOrientation(State state) {
        if (!state.isKeyguardShowingAndNotOccluded() || mKeyguardScreenRotation) {
        if (state.isKeyguardShowingAndNotOccluded()) {
            if (mKeyguardScreenRotation) {
                mLp.screenOrientation = ActivityInfo.SCREEN_ORIENTATION_USER;
            } else {
                mLp.screenOrientation = ActivityInfo.SCREEN_ORIENTATION_NOSENSOR;
            }
        } else {
            mLp.screenOrientation = ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED;
        }
    }

    private void applyFocusableFlag(State state) {