Merge "Ensures that we end back to home animation on the last animation frame." into main
This commit is contained in:
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;
|
||||
|
||||
Reference in new issue
Block a user