Fix some visual bugs

- Workspace was translating while swiping from overview to all apps
- VerticalSwipeController progress jumped a bit backwards when
  flinging because sign wasn't taken into account for velocity

Change-Id: Ife5e9d87ca9f0b3429dd9045c6569868a65eb0af
This commit is contained in:
Tony
2018-01-26 20:50:55 -08:00
parent 3c24060b62
commit 12e9f34bd5
3 changed files with 3 additions and 3 deletions

View File

@@ -259,7 +259,7 @@ public abstract class VerticalSwipeController extends AnimatorListenerAdapter
});
float nextFrameProgress = Utilities.boundToRange(
progress + velocity * SINGLE_FRAME_MS / getShiftRange(), 0f, 1f);
progress + velocity * SINGLE_FRAME_MS * mProgressMultiplier, 0f, 1f);
ValueAnimator anim = mCurrentAnimation.getAnimationPlayer();
anim.setFloatValues(nextFrameProgress, targetState == mToState ? 1f : 0f);