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: I2315f7c54cb98c32f2318ded19f7563f3709cb42
This commit is contained in:
Jonathan Miranda 2021-07-01 18:35:27 +00:00 committed by Automerger Merge Worker
commit b018ea34fe
1 changed files with 3 additions and 0 deletions

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;