Merge "Fix widget cell container size" into sc-v2-dev am: daf4289766 am: d6b8146816

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

Change-Id: I232f7421cfd9fd0d9f954296e6faae56245fd59c
This commit is contained in:
TreeHugger Robot
2021-07-19 09:42:35 +00:00
committed by Automerger Merge Worker
@@ -332,8 +332,8 @@ public class WidgetCell extends LinearLayout implements OnLayoutChangeListener {
scale = Math.min(maxWidth / previewWidth, 1);
}
setContainerSize(
Math.round(drawable.getIntrinsicWidth() * scale),
Math.round(drawable.getIntrinsicHeight() * scale));
Math.round(drawable.getIntrinsicWidth() * scale * mPreviewContainerScale),
Math.round(drawable.getIntrinsicHeight() * scale * mPreviewContainerScale));
mWidgetImage.setDrawable(drawable);
mWidgetImage.setVisibility(View.VISIBLE);
if (mAppWidgetHostViewPreview != null) {