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:
@@ -269,6 +269,9 @@ public class PreviewItemManager {
|
|||||||
setDrawable(p, items.get(i));
|
setDrawable(p, items.get(i));
|
||||||
|
|
||||||
if (!animate) {
|
if (!animate) {
|
||||||
|
if (p.anim != null) {
|
||||||
|
p.anim.cancel();
|
||||||
|
}
|
||||||
computePreviewItemDrawingParams(i, numItemsInFirstPagePreview, p);
|
computePreviewItemDrawingParams(i, numItemsInFirstPagePreview, p);
|
||||||
if (mReferenceDrawable == null) {
|
if (mReferenceDrawable == null) {
|
||||||
mReferenceDrawable = p.drawable;
|
mReferenceDrawable = p.drawable;
|
||||||
|
|||||||
Reference in New Issue
Block a user