Merge "Cancel existing preview item animation during non-animated update." into sc-dev

This commit is contained in:
Jonathan Miranda
2021-07-01 18:32:49 +00:00
committed by Android (Google) Code Review

View File

@@ -269,6 +269,9 @@ public class PreviewItemManager {
setDrawable(p, items.get(i));
if (!animate) {
if (p.anim != null) {
p.anim.cancel();
}
computePreviewItemDrawingParams(i, numItemsInFirstPagePreview, p);
if (mReferenceDrawable == null) {
mReferenceDrawable = p.drawable;