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

Commit 56f3a4b8 authored by Sally Qi's avatar Sally Qi Committed by Android (Google) Code Review
Browse files

Merge "Fix the crash in AnimatorManager." into main

parents 202ac2fe f3a0ee5c
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -90,7 +90,13 @@ void AnimatorManager::pushStaging() {
        }
        mCancelAllAnimators = false;
    } else {
        for (auto& animator : mAnimators) {
        // create a copy of mAnimators as onAnimatorTargetChanged can erase mAnimators.
        FatVector<sp<BaseRenderNodeAnimator>> animators;
        animators.reserve(mAnimators.size());
        for (const auto& animator : mAnimators) {
            animators.push_back(animator);
        }
        for (auto& animator : animators) {
            animator->pushStaging(mAnimationHandle->context());
        }
    }