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
This commit is contained in:
Sunny Goyal
2017-01-19 14:00:40 -08:00
parent 278359539c
commit a2441e88ff
8 changed files with 105 additions and 72 deletions
@@ -71,9 +71,6 @@ public abstract class AppWidgetManagerCompat {
public abstract void startConfigActivity(AppWidgetProviderInfo info, int widgetId,
Activity activity, AppWidgetHost host, int requestCode);
public abstract Bitmap getBadgeBitmap(LauncherAppWidgetProviderInfo info, Bitmap bitmap,
int imageWidth, int imageHeight);
public abstract LauncherAppWidgetProviderInfo findProvider(
ComponentName provider, UserHandle user);