From 92bbfa19c379b99017e8c00418c3a461d4a9cac8 Mon Sep 17 00:00:00 2001 From: Sunny Goyal Date: Tue, 7 Feb 2017 15:06:32 -0800 Subject: Updating the default widget preview generation logic We draw a while round rect box which is divided into the cells to represent the widget size. The app icon is drawn in the center for this white box. Bug: 34819119 Change-Id: Ie4d83712577f21b276c6744a55993f71da368398 --- src/com/android/launcher3/widget/PendingItemDragHelper.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/com/android/launcher3/widget/PendingItemDragHelper.java') diff --git a/src/com/android/launcher3/widget/PendingItemDragHelper.java b/src/com/android/launcher3/widget/PendingItemDragHelper.java index a4698c292..c723f9e8b 100644 --- a/src/com/android/launcher3/widget/PendingItemDragHelper.java +++ b/src/com/android/launcher3/widget/PendingItemDragHelper.java @@ -178,12 +178,8 @@ public class PendingItemDragHelper extends DragPreviewProvider { dst.offset((w - scaledWidth) / 2, (h - scaledHeight) / 2); canvas.drawBitmap(mPreviewBitmap, src, dst, null); - - // Don't clip alpha values for the drag outline if we're using the default widget preview - boolean clipAlpha = !(mAddInfo instanceof PendingAddWidgetInfo && - (((PendingAddWidgetInfo) mAddInfo).previewImage == 0)); HolographicOutlineHelper.getInstance(mView.getContext()) - .applyExpensiveOutlineWithBlur(b, canvas, clipAlpha); + .applyExpensiveOutlineWithBlur(b, canvas); canvas.setBitmap(null); return b; -- cgit v1.2.3