Fixing custom widgets support:

> Moving the definitions to xml so that it is easier to override in derivative projects
> Fixing verious bind and save logic for custom widgets
> Adding feature flag to easily disable custom widgets

Change-Id: I0e278bc7dd415713029364060ef10842da990be9
This commit is contained in:
Sunny Goyal
2017-08-16 04:59:08 -07:00
parent be213def87
commit 952e63d006
22 changed files with 363 additions and 205 deletions

View File

@@ -3641,7 +3641,7 @@ public class Workspace extends PagedView
.getInstance(mLauncher).findProvider(item.providerName, item.user);
} else {
widgetInfo = AppWidgetManagerCompat.getInstance(mLauncher)
.getAppWidgetInfo(item.appWidgetId);
.getLauncherAppWidgetInfo(item.appWidgetId);
}
if (widgetInfo != null) {