summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher2/ItemInfo.java
diff options
context:
space:
mode:
authorMichael Jurka <mikejurka@google.com>2011-08-29 14:02:47 -0700
committerMichael Jurka <mikejurka@google.com>2011-08-29 14:23:30 -0700
commitb60fd0eafbb4e6e61b429c403f024dc903bc483a (patch)
tree041c870e297bccca1f848db73204a99e918b0b45 /src/com/android/launcher2/ItemInfo.java
parentfe1f9b0bd47c611333d1f14261be80ffac08d152 (diff)
downloadandroid_packages_apps_Trebuchet-b60fd0eafbb4e6e61b429c403f024dc903bc483a.tar.gz
android_packages_apps_Trebuchet-b60fd0eafbb4e6e61b429c403f024dc903bc483a.tar.bz2
android_packages_apps_Trebuchet-b60fd0eafbb4e6e61b429c403f024dc903bc483a.zip
Tagging where ItemInfos are created for debug purposes
Change-Id: Iad3ed8ef4f81f4990c027ab46fd25b03b089babb
Diffstat (limited to 'src/com/android/launcher2/ItemInfo.java')
-rw-r--r--src/com/android/launcher2/ItemInfo.java11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/com/android/launcher2/ItemInfo.java b/src/com/android/launcher2/ItemInfo.java
index 8d4662495..5c05f163f 100644
--- a/src/com/android/launcher2/ItemInfo.java
+++ b/src/com/android/launcher2/ItemInfo.java
@@ -86,10 +86,16 @@ class ItemInfo {
*/
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 @@ class ItemInfo {
screen = info.screen;
itemType = info.itemType;
container = info.container;
+ this.whereCreated = whereCreated;
}
/**