Fixing bugs with new widget adding

-> widget ids were being reused in some cases
-> widgets could be added before springloaded mode was entered

Change-Id: Iaf3bffc49d4ec2de4b63db1b5cfb52b8544e9c2b
This commit is contained in:
Adam Cohen
2012-02-13 19:27:37 -08:00
parent ed66b2bac7
commit 1b36dc3f2b
4 changed files with 35 additions and 13 deletions

View File

@@ -57,4 +57,18 @@ class PendingAddWidgetInfo extends PendingAddItemInfo {
configurationData = data;
}
}
}
// Copy constructor
public PendingAddWidgetInfo(PendingAddWidgetInfo copy) {
minWidth = copy.minWidth;
minHeight = copy.minHeight;
previewImage = copy.previewImage;
icon = copy.icon;
info = copy.info;
boundWidget = copy.boundWidget;
mimeType = copy.mimeType;
configurationData = copy.configurationData;
componentName = copy.componentName;
itemType = copy.itemType;
}
}