mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-03 09:26:51 +00:00
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:
@@ -35,13 +35,13 @@ public class PendingAddWidgetInfo extends PendingAddItemInfo {
|
||||
public Bundle bindOptions = null;
|
||||
|
||||
public PendingAddWidgetInfo(LauncherAppWidgetProviderInfo i) {
|
||||
if (i.isCustomWidget) {
|
||||
if (i.isCustomWidget()) {
|
||||
itemType = LauncherSettings.Favorites.ITEM_TYPE_CUSTOM_APPWIDGET;
|
||||
} else {
|
||||
itemType = LauncherSettings.Favorites.ITEM_TYPE_APPWIDGET;
|
||||
}
|
||||
this.info = i;
|
||||
user = i.getUser();
|
||||
user = i.getProfile();
|
||||
componentName = i.provider;
|
||||
previewImage = i.previewImage;
|
||||
icon = i.icon;
|
||||
|
||||
Reference in New Issue
Block a user