Tagging where ItemInfos are created for debug purposes
Change-Id: Iad3ed8ef4f81f4990c027ab46fd25b03b089babb
diff --git a/src/com/android/launcher2/ItemInfo.java b/src/com/android/launcher2/ItemInfo.java
index 8d46624..5c05f16 100644
--- a/src/com/android/launcher2/ItemInfo.java
+++ b/src/com/android/launcher2/ItemInfo.java
@@ -86,10 +86,16 @@
*/
int[] dropPos = null;
- ItemInfo() {
+ /*
+ * A tag to know where this item was created
+ */
+ String whereCreated;
+
+ ItemInfo(String whereCreated) {
+ this.whereCreated = whereCreated;
}
- ItemInfo(ItemInfo info) {
+ ItemInfo(ItemInfo info, String whereCreated) {
id = info.id;
cellX = info.cellX;
cellY = info.cellY;
@@ -98,6 +104,7 @@
screen = info.screen;
itemType = info.itemType;
container = info.container;
+ this.whereCreated = whereCreated;
}
/**