From bc3ec9fb664e5ea1dd0bcaba361cf0b0eb7974bf Mon Sep 17 00:00:00 2001 From: Tracy Zhou Date: Tue, 15 Dec 2020 18:56:54 -0800 Subject: [PATCH] Place recents above app only after the initial touch down The problem is that currently upon touch down we place recents above app, before recents view is visible, so instead home screen is revealed. Here is the breakdown: Initial touch down -> app on top First move event -> updateFinalShift -> recents on top End target = home -> app on top Fixes: 175423704 Test: manual Change-Id: I81a4fea34c983ac2e6921f4e3515ef3193201069 --- quickstep/src/com/android/quickstep/AbsSwipeUpHandler.java | 1 + quickstep/src/com/android/quickstep/SwipeUpAnimationLogic.java | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/quickstep/src/com/android/quickstep/AbsSwipeUpHandler.java b/quickstep/src/com/android/quickstep/AbsSwipeUpHandler.java index 3c6299fcc3..201dfe7a1a 100644 --- a/quickstep/src/com/android/quickstep/AbsSwipeUpHandler.java +++ b/quickstep/src/com/android/quickstep/AbsSwipeUpHandler.java @@ -724,6 +724,7 @@ public abstract class AbsSwipeUpHandler, Q extends setIsLikelyToStartNewTask(isLikelyToStartNewTask, false /* animate */); mStateCallback.setStateOnUiThread(STATE_GESTURE_STARTED); mGestureStarted = true; + mTaskViewSimulator.setDrawsBelowRecents(true); } /** diff --git a/quickstep/src/com/android/quickstep/SwipeUpAnimationLogic.java b/quickstep/src/com/android/quickstep/SwipeUpAnimationLogic.java index 4bb1bb565e..f696efe094 100644 --- a/quickstep/src/com/android/quickstep/SwipeUpAnimationLogic.java +++ b/quickstep/src/com/android/quickstep/SwipeUpAnimationLogic.java @@ -82,7 +82,6 @@ public abstract class SwipeUpAnimationLogic { mTaskViewSimulator.getOrientationState().update( mDeviceState.getRotationTouchHelper().getCurrentActiveRotation(), mDeviceState.getRotationTouchHelper().getDisplayRotation()); - mTaskViewSimulator.setDrawsBelowRecents(true); mMaxShadowRadius = context.getResources().getDimensionPixelSize(R.dimen.max_shadow_radius); mTransformParams.setShadowRadius(mMaxShadowRadius);