From 021c06cde938cd3950301b0e41bf37f8ebe54fec Mon Sep 17 00:00:00 2001 From: Winson Chung Date: Thu, 15 Feb 2018 19:40:24 -0800 Subject: [PATCH] Don't rely on ORIENTATION_BEHIND, lock th rotation during the gesture. Bug: 73486148 Change-Id: I83650c6a3ba8634fb37a5792614e958fb01dd7b8 --- .../com/android/quickstep/WindowTransformSwipeHandler.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java b/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java index 5fd483ff1f..bbd90cb276 100644 --- a/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java +++ b/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java @@ -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) {