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

Commit fc65c357 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix anim done callback not being called sometimes" into ub-launcher3-qt-dev

parents f574bd55 63517a7a
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -224,6 +224,9 @@ public final class ContentFillItemAnimator extends SimpleItemAnimator {

    @Override
    public void endAnimations() {
        if (!isRunning()) {
            return;
        }
        for (int i = mPendingAnims.size() - 1; i >= 0; i--) {
            endPendingAnimation(mPendingAnims.get(i));
            mPendingAnims.remove(i);
@@ -233,7 +236,7 @@ public final class ContentFillItemAnimator extends SimpleItemAnimator {
            // This calls the on end animation callback which will set values to their end target.
            anim.cancel();
        }
        dispatchAnimationsFinished();
        dispatchFinishedWhenDone();
    }

    private void endPendingAnimation(PendingAnimation pendAnim) {