summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher2/AllAppsList.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/AllAppsList.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/AllAppsList.java')
-rw-r--r--src/com/android/launcher2/AllAppsList.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/launcher2/AllAppsList.java b/src/com/android/launcher2/AllAppsList.java
index 7c107a79a..051b0bd1d 100644
--- a/src/com/android/launcher2/AllAppsList.java
+++ b/src/com/android/launcher2/AllAppsList.java
@@ -91,7 +91,7 @@ class AllAppsList {
if (matches.size() > 0) {
for (ResolveInfo info : matches) {
- add(new ApplicationInfo(context.getPackageManager(), info, mIconCache, null, "15"));
+ add(new ApplicationInfo(context.getPackageManager(), info, mIconCache, null));
}
}
}
@@ -142,7 +142,7 @@ class AllAppsList {
info.activityInfo.applicationInfo.packageName,
info.activityInfo.name);
if (applicationInfo == null) {
- add(new ApplicationInfo(context.getPackageManager(), info, mIconCache, null, "16"));
+ add(new ApplicationInfo(context.getPackageManager(), info, mIconCache, null));
} else {
mIconCache.remove(applicationInfo.componentName);
mIconCache.getTitleAndIcon(applicationInfo, info, null);