Start springs for All Apps when user flings up.

Bug: 77695481
Change-Id: Ifecfbbb89601947118f620f522662aee8a61946e
This commit is contained in:
Jon Miranda
2018-05-22 23:12:10 -07:00
parent c0928c3ba0
commit 1d19e2f152
3 changed files with 48 additions and 0 deletions

View File

@@ -396,6 +396,9 @@ public abstract class AbstractStateChangeTouchController
updateSwipeCompleteAnimation(anim, Math.max(duration, getRemainingAtomicDuration()),
targetState, velocity, fling);
mCurrentAnimation.dispatchOnStart();
if (fling && targetState == LauncherState.ALL_APPS) {
mLauncher.getAppsView().addSpringFromFlingUpdateListener(anim, velocity);
}
anim.start();
if (mAtomicAnim == null) {
startAtomicComponentsAnim(endProgress, anim.getDuration());