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

Commit de982324 authored by Zak Cohen's avatar Zak Cohen Committed by Android (Google) Code Review
Browse files

Merge "Make RectFSpringAnim resilient to negative height starting rect." into ub-launcher3-master

parents 833cd432 f2a15f1b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -165,7 +165,7 @@ public class RectFSpringAnim {
        mRectYAnim = new FlingSpringAnim(this, RECT_Y, startY, endY, startVelocityY,
                mMinVisChange, minYValue, maxYValue, springVelocityFactor, onYEndListener);

        float minVisibleChange = 1f / mStartRect.height();
        float minVisibleChange = Math.abs(1f / mStartRect.height());
        mRectScaleAnim = new SpringAnimation(this, RECT_SCALE_PROGRESS)
                .setSpring(new SpringForce(1f)
                .setDampingRatio(SpringForce.DAMPING_RATIO_LOW_BOUNCY)