Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 07406f36 authored by George Mount's avatar George Mount
Browse files

Allow EdgeEffect to fling during pull

Bug: 186430321

EdgeEffect was restarting the fling from the start if onAbsorb()
was called after onPullDistance(). This CL does not reset
the distance in onAbsorb().

Test: new test
Change-Id: I0657059c275f42cfe229a3aaa8bf37c87e0394f1
parent b1aee44b
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -442,7 +442,6 @@ public class EdgeEffect {
        if (mEdgeEffectType == TYPE_STRETCH) {
            mState = STATE_RECEDE;
            mVelocity = velocity * ON_ABSORB_VELOCITY_ADJUSTMENT;
            mDistance = 0;
            mStartTime = AnimationUtils.currentAnimationTimeMillis();
        } else {
            mState = STATE_ABSORB;