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

This commit is contained in:
TreeHugger Robot
2019-05-10 01:42:47 +00:00
committed by Android (Google) Code Review
@@ -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) {