Merge "Use Animator cancel instead of end" into ub-launcher3-qt-dev

am: 1350be3c21

Change-Id: Id9c598d1e23a33c02a5615a65d44c827cf825d80
This commit is contained in:
Kevin
2019-05-09 17:07:58 -07:00
committed by android-build-merger
@@ -180,6 +180,7 @@ public final class ContentFillItemAnimator extends SimpleItemAnimator {
@Override
public void onAnimationEnd(Animator animation) {
CONTENT_TRANSITION_PROGRESS.set(itemView, 1.0f);
dispatchChangeFinished(viewHolder, true /* oldItem */);
mRunningAnims.remove(anim);
dispatchFinishedWhenDone();
@@ -252,7 +253,8 @@ public final class ContentFillItemAnimator extends SimpleItemAnimator {
}
for (int i = mRunningAnims.size() - 1; i >= 0; i--) {
ObjectAnimator anim = mRunningAnims.get(i);
anim.end();
// This calls the on end animation callback which will set values to their end target.
anim.cancel();
}
dispatchAnimationsFinished();
}