diff options
author | Jon Miranda <jonmiranda@google.com> | 2019-01-08 16:01:57 -0800 |
---|---|---|
committer | Jon Miranda <jonmiranda@google.com> | 2019-01-08 16:43:45 -0800 |
commit | 7e390c3b17a7ed6dccc0a1e227934dbe74d08c03 (patch) | |
tree | b96cfef657d3e97ad87b0d3a843440a8b4f2cf58 /src/com/android/launcher3/touch | |
parent | 1ff1231baf660fbfbe500461d2c04cbd14bef2f8 (diff) | |
download | android_packages_apps_Trebuchet-7e390c3b17a7ed6dccc0a1e227934dbe74d08c03.tar.gz android_packages_apps_Trebuchet-7e390c3b17a7ed6dccc0a1e227934dbe74d08c03.tar.bz2 android_packages_apps_Trebuchet-7e390c3b17a7ed6dccc0a1e227934dbe74d08c03.zip |
Revert "Revert "Add spring to shelf for home <-> overview <-> all apps state transitions.""
This reverts commit 2bdac8f7e53cb933b84a63799aa6195dd9486b8d.
Reason for revert: Reverting and added fix to crash
Change-Id: I20508eb05c85ba5dfba52630aa9becea270f890b
Diffstat (limited to 'src/com/android/launcher3/touch')
-rw-r--r-- | src/com/android/launcher3/touch/AbstractStateChangeTouchController.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/com/android/launcher3/touch/AbstractStateChangeTouchController.java b/src/com/android/launcher3/touch/AbstractStateChangeTouchController.java index a7bd243a6..bb143288c 100644 --- a/src/com/android/launcher3/touch/AbstractStateChangeTouchController.java +++ b/src/com/android/launcher3/touch/AbstractStateChangeTouchController.java @@ -24,6 +24,7 @@ import static com.android.launcher3.LauncherStateManager.ATOMIC_COMPONENT; import static com.android.launcher3.LauncherStateManager.NON_ATOMIC_COMPONENT; import static com.android.launcher3.Utilities.SINGLE_FRAME_MS; import static com.android.launcher3.anim.Interpolators.scrollInterpolatorForVelocity; +import static com.android.launcher3.config.FeatureFlags.QUICKSTEP_SPRINGS; import android.animation.Animator; import android.animation.AnimatorListenerAdapter; @@ -45,6 +46,7 @@ import com.android.launcher3.anim.AnimationSuccessListener; import com.android.launcher3.anim.AnimatorPlaybackController; import com.android.launcher3.anim.AnimatorSetBuilder; import com.android.launcher3.compat.AccessibilityManagerCompat; +import com.android.launcher3.config.FeatureFlags; import com.android.launcher3.userevent.nano.LauncherLogProto; import com.android.launcher3.userevent.nano.LauncherLogProto.Action.Direction; import com.android.launcher3.userevent.nano.LauncherLogProto.Action.Touch; @@ -428,8 +430,8 @@ public abstract class AbstractStateChangeTouchController maybeUpdateAtomicAnim(mFromState, targetState, targetState == mToState ? 1f : 0f); updateSwipeCompleteAnimation(anim, Math.max(duration, getRemainingAtomicDuration()), targetState, velocity, fling); - mCurrentAnimation.dispatchOnStart(); - if (fling && targetState == LauncherState.ALL_APPS) { + mCurrentAnimation.dispatchOnStartWithVelocity(endProgress, velocity); + if (fling && targetState == LauncherState.ALL_APPS && !QUICKSTEP_SPRINGS.get()) { mLauncher.getAppsView().addSpringFromFlingUpdateListener(anim, velocity); } anim.start(); |