Significantly reduce gesture feedback when swiping up to home screen.

- Uses overscroll damping logic to reduce the velocity
- The start to target rect interpolation can be from the
  start, center, or bottom of the rect depending on where the item
  is on the workspace. This reduces the  amount of distance needed to
  travel between, which helps further reduce gesture feedback.

Bug: 173107751
Test: test closing app that is on:
      -  top row of home screen
      -  middle of home screen
      - in hotseat

Change-Id: I055dd61ca3491807109ff2f6c501bf710c8d340f
This commit is contained in:
Jon Miranda
2021-09-14 13:59:07 -07:00
committed by Jonathan Miranda
parent 144b5c182d
commit 13519e4402
8 changed files with 131 additions and 37 deletions

View File

@@ -1307,7 +1307,8 @@ public class QuickstepTransitionManager implements OnDeviceProfileChangeListener
}
final RectF startRect = new RectF(0, 0, mDeviceProfile.widthPx, mDeviceProfile.heightPx);
RectFSpringAnim anim = new RectFSpringAnim(startRect, targetRect, mLauncher);
RectFSpringAnim anim = new RectFSpringAnim(startRect, targetRect, mLauncher,
mDeviceProfile);
// Hook up floating views to the closing window animators.
if (floatingIconView != null) {