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

Commit 356401e6 authored by Jon @'s avatar Jon @ Committed by Android (Google) Code Review
Browse files

Merge "Ensures that we end back to home animation on the last animation frame." into main

parents bece5be7 5441cce8
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -281,7 +281,15 @@ public class RectFSpringAnim extends ReleaseCheck {
            if (mRectScaleAnim.canSkipToEnd()) {
                mRectScaleAnim.skipToEnd();
            }
            mCurrentScaleProgress = mRectScaleAnim.getSpring().getFinalPosition();

            // Ensures that we end the animation with the final values.
            mRectXAnimEnded = false;
            mRectYAnimEnded = false;
            mRectScaleAnimEnded = false;
            onUpdate();
        }

        mRectXAnimEnded = true;
        mRectYAnimEnded = true;
        mRectScaleAnimEnded = true;