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
This commit is contained in:
Tracy Zhou
2020-12-15 18:56:54 -08:00
parent 2df0ef38a0
commit bc3ec9fb66
2 changed files with 1 additions and 1 deletions

View File

@@ -724,6 +724,7 @@ public abstract class AbsSwipeUpHandler<T extends StatefulActivity<?>, Q extends
setIsLikelyToStartNewTask(isLikelyToStartNewTask, false /* animate */);
mStateCallback.setStateOnUiThread(STATE_GESTURE_STARTED);
mGestureStarted = true;
mTaskViewSimulator.setDrawsBelowRecents(true);
}
/**

View File

@@ -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);