Don't rely on ORIENTATION_BEHIND, lock th rotation during the gesture.
Bug: 73486148
Change-Id: I83650c6a3ba8634fb37a5792614e958fb01dd7b8
diff --git a/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java b/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java
index 5fd483f..bbd90cb 100644
--- a/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java
+++ b/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java
@@ -281,9 +281,9 @@
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) {