Don't rely on ORIENTATION_BEHIND, lock th rotation during the gesture.
Bug: 73486148 Change-Id: I83650c6a3ba8634fb37a5792614e958fb01dd7b8
This commit is contained in:
parent
e8ec58f90f
commit
021c06cde9
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue