summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher2/ItemInfo.java
diff options
context:
space:
mode:
authorMichael Jurka <mikejurka@google.com>2011-08-29 14:03:34 -0700
committerMichael Jurka <mikejurka@google.com>2011-09-07 16:59:07 -0700
commitc9d95c5897fc5ebbf53903d4ab18ad13d196f643 (patch)
tree86af38c22deec7c93b6434d2e04ec1a2e923b6dc /src/com/android/launcher2/ItemInfo.java
parent6c6f6f2009337ebfcc7f8fa3e5651d070ee2a9d7 (diff)
downloadandroid_packages_apps_Trebuchet-c9d95c5897fc5ebbf53903d4ab18ad13d196f643.tar.gz
android_packages_apps_Trebuchet-c9d95c5897fc5ebbf53903d4ab18ad13d196f643.tar.bz2
android_packages_apps_Trebuchet-c9d95c5897fc5ebbf53903d4ab18ad13d196f643.zip
Cleaning up LauncherModel
- performing all DB operations immediately if called from worker thread (a previous change that did this in updateItemInDatabase fixed an outstanding bug) - centralizing logic to do database updates - removing old logging code Change-Id: Idc7bfef3921828ff7c5492b8e996c0a07e1ec508
Diffstat (limited to 'src/com/android/launcher2/ItemInfo.java')
-rw-r--r--src/com/android/launcher2/ItemInfo.java11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/com/android/launcher2/ItemInfo.java b/src/com/android/launcher2/ItemInfo.java
index 5c05f163f..8d4662495 100644
--- a/src/com/android/launcher2/ItemInfo.java
+++ b/src/com/android/launcher2/ItemInfo.java
@@ -86,16 +86,10 @@ class ItemInfo {
*/
int[] dropPos = null;
- /*
- * A tag to know where this item was created
- */
- String whereCreated;
-
- ItemInfo(String whereCreated) {
- this.whereCreated = whereCreated;
+ ItemInfo() {
}
- ItemInfo(ItemInfo info, String whereCreated) {
+ ItemInfo(ItemInfo info) {
id = info.id;
cellX = info.cellX;
cellY = info.cellY;
@@ -104,7 +98,6 @@ class ItemInfo {
screen = info.screen;
itemType = info.itemType;
container = info.container;
- this.whereCreated = whereCreated;
}
/**