diff options
author | Sunny Goyal <sunnygoyal@google.com> | 2017-02-07 15:06:32 -0800 |
---|---|---|
committer | Sunny Goyal <sunnygoyal@google.com> | 2017-02-08 15:28:02 -0800 |
commit | 92bbfa19c379b99017e8c00418c3a461d4a9cac8 (patch) | |
tree | 737c1087c94d42bbc8ddab90cbff5eb36def4742 /src/com/android/launcher3/widget | |
parent | db7b82960a54b85510aaeba2f543b37b4dc59fc8 (diff) | |
download | android_packages_apps_Trebuchet-92bbfa19c379b99017e8c00418c3a461d4a9cac8.tar.gz android_packages_apps_Trebuchet-92bbfa19c379b99017e8c00418c3a461d4a9cac8.tar.bz2 android_packages_apps_Trebuchet-92bbfa19c379b99017e8c00418c3a461d4a9cac8.zip |
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
Diffstat (limited to 'src/com/android/launcher3/widget')
-rw-r--r-- | src/com/android/launcher3/widget/PendingItemDragHelper.java | 6 |
1 files changed, 1 insertions, 5 deletions
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; |