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

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15164771

Change-Id: I2f4175a5b0b232184d2b8cd2200b3e2926903555
This commit is contained in:
Jonathan Miranda
2021-07-01 18:35:25 +00:00
committed by Automerger Merge Worker
@@ -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;