Fix widget animation truncated at drop if a widget is resized am: 39a87fda17

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

Change-Id: I22e0c4df8d7633d54c94ae46efa64d5e7309550a
This commit is contained in:
Steven Ng
2021-07-01 10:49:23 +00:00
committed by Automerger Merge Worker
@@ -447,12 +447,12 @@ public abstract class DragView<T extends Context & ActivityContext> extends Fram
mContent.draw(picture.beginRecording(mWidth, mHeight));
picture.endRecording();
View view = new View(mActivity);
view.setClipToOutline(mContent.getClipToOutline());
view.setOutlineProvider(mContent.getOutlineProvider());
view.setBackground(new PictureDrawable(picture));
view.measure(makeMeasureSpec(mWidth, EXACTLY), makeMeasureSpec(mHeight, EXACTLY));
view.layout(mContent.getLeft(), mContent.getTop(),
mContent.getRight(), mContent.getBottom());
setClipToOutline(mContent.getClipToOutline());
setOutlineProvider(mContent.getOutlineProvider());
addViewInLayout(view, indexOfChild(mContent), mContent.getLayoutParams(), true);
removeViewInLayout(mContent);