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

This commit is contained in:
Jon @ authored and Android (Google) Code Review committed 2024-02-09 00:43:41 +00:00
commit 356401e663
1 file changed
+8
@@ -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;