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

Commit 3129fc5b authored by Riddle Hsu's avatar Riddle Hsu Committed by Android (Google) Code Review
Browse files

Merge "Clear transform when updating animation frame" into main

parents 5f507325 b81a9055
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -136,6 +136,7 @@ class ActivityEmbeddingAnimationAdapter {

    /** Called on frame update. */
    final void onAnimationUpdate(@NonNull SurfaceControl.Transaction t, long currentPlayTime) {
        mTransformation.clear();
        // Extract the transformation to the current time.
        mAnimation.getTransformation(Math.min(currentPlayTime, mAnimation.getDuration()),
                mTransformation);