Merge "Fix widget cell container size" into sc-v2-dev am: daf4289766
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15311691 Change-Id: I7ab82d57593cf6f6f1584064388fcb98d7d9b8bc
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user