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

Commit 021c06cd authored by Winson Chung's avatar Winson Chung
Browse files

Don't rely on ORIENTATION_BEHIND, lock th rotation during the gesture.

Bug: 73486148
Change-Id: I83650c6a3ba8634fb37a5792614e958fb01dd7b8
parent e8ec58f9
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -281,9 +281,9 @@ public class WindowTransformSwipeHandler extends BaseSwipeInteractionHandler {
        mWasLauncherAlreadyVisible = alreadyOnHome;
        mLauncher = launcher;

        // For the duration of the gesture, set the screen orientation to BEHIND to ensure that we
        // do not rotate mid-quickscrub
        mLauncher.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_BEHIND);
        // For the duration of the gesture, lock the screen orientation to ensure that we do not
        // rotate mid-quickscrub
        mLauncher.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LOCKED);

        LauncherState startState = mLauncher.getStateManager().getState();
        if (startState.disableRestore) {