summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher2/ItemInfo.java
diff options
context:
space:
mode:
authorDaniel Sandler <dsandler@android.com>2010-05-26 16:28:16 -0400
committerDaniel Sandler <dsandler@android.com>2010-05-26 16:50:49 -0400
commit8802e960495e61803c18ea3dda2e30ef0a611d8f (patch)
tree8ba0562e5dd9d24d457f338ec28ef7b875096b14 /src/com/android/launcher2/ItemInfo.java
parent3e297b57a0cb06450034a80893b5ede223b33552 (diff)
downloadandroid_packages_apps_Trebuchet-8802e960495e61803c18ea3dda2e30ef0a611d8f.tar.gz
android_packages_apps_Trebuchet-8802e960495e61803c18ea3dda2e30ef0a611d8f.tar.bz2
android_packages_apps_Trebuchet-8802e960495e61803c18ea3dda2e30ef0a611d8f.zip
Defend against overlapping items in the workspace.
Should the Launcher's database become corrupted by mysterious forces (e.g.: third-party launchers; botched upgrades; smoke monsters) in such a way as to cause two items to share the same cell, we now ignore loading the latter. Prevents a runtime crash (http://b/2655516). Bug: 2655516 Change-Id: Ia514746f04f0e51b2cd07e9290589a6eab75bdd2
Diffstat (limited to 'src/com/android/launcher2/ItemInfo.java')
-rw-r--r--src/com/android/launcher2/ItemInfo.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/com/android/launcher2/ItemInfo.java b/src/com/android/launcher2/ItemInfo.java
index ca2ea86c8..a96d9aeb2 100644
--- a/src/com/android/launcher2/ItemInfo.java
+++ b/src/com/android/launcher2/ItemInfo.java
@@ -137,4 +137,9 @@ class ItemInfo {
void unbind() {
}
+
+ @Override
+ public String toString() {
+ return "Item(id=" + this.id + " type=" + this.itemType + ")";
+ }
}