OSDN Git Service

Updating widget preview generation to not embed any badge.
authorSunny Goyal <sunnygoyal@google.com>
Sat, 14 Jan 2017 21:40:15 +0000 (13:40 -0800)
committerSunny Goyal <sunnygoyal@google.com>
Thu, 19 Jan 2017 22:00:40 +0000 (14:00 -0800)
commita2441e88ff862714d823d6c786b2d563047f75fc
tree4d610a211c2f32f8dd788965096718d9c9597568
parent278359539c02ca160caf1df54ce96053a2a2ef59
Updating widget preview generation to not embed any badge.
Instead drawing badge in the view directly.

This will allow us to reuse the same preview when we do not want to draw
badges. This also simplified badging of shortcut config activities.

Change-Id: I9c07c33bf9c2b8ef81a00026b1d42587868c906f
res/layout/widget_cell.xml
res/values/dimens.xml
src/com/android/launcher3/WidgetPreviewLoader.java
src/com/android/launcher3/compat/AppWidgetManagerCompat.java
src/com/android/launcher3/compat/AppWidgetManagerCompatVL.java
src/com/android/launcher3/graphics/DrawableFactory.java
src/com/android/launcher3/widget/WidgetCell.java
src/com/android/launcher3/widget/WidgetImageView.java