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

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

Merge "Revert "Clear controls and animations in temp arrays after using them"" into sc-dev

parents a77a0600 1efc2a70
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -601,6 +601,8 @@ public class InsetsController implements WindowInsetsController, InsetsAnimation
                return;
            }

            mTmpFinishedControls.clear();
            mTmpRunningAnims.clear();
            InsetsState state = new InsetsState(mState, true /* copySources */);
            for (int i = mRunningAnimations.size() - 1; i >= 0; i--) {
                RunningAnimation runningAnimation = mRunningAnimations.get(i);
@@ -633,12 +635,10 @@ public class InsetsController implements WindowInsetsController, InsetsAnimation
                            anim.getTypeMask(), anim.getInterpolatedFraction()));
                }
            }
            mTmpRunningAnims.clear();

            for (int i = mTmpFinishedControls.size() - 1; i >= 0; i--) {
                dispatchAnimationEnd(mTmpFinishedControls.get(i).getAnimation());
            }
            mTmpFinishedControls.clear();
        };
    }