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

Commit ca36cf7b authored by Jorim Jaggi's avatar Jorim Jaggi
Browse files

Fix global screen rotation issue.

Bug: 14080683
Change-Id: I0144faafa0e01c14c8c8e6a6c9fc81a10d25f47d
parent fa9189fd
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) {