summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/AllAppsList.java
diff options
context:
space:
mode:
authorSunny Goyal <sunnygoyal@google.com>2014-10-06 16:23:56 -0700
committerSunny Goyal <sunnygoyal@google.com>2014-10-07 14:56:58 -0700
commitb50cc8c5d6125715b139d978887830a5341971aa (patch)
treea349b95ae8835b0d72608124e58664d55241ee65 /src/com/android/launcher3/AllAppsList.java
parent2fce90c38a79d318e96a28107dea287e42509861 (diff)
downloadandroid_packages_apps_Trebuchet-b50cc8c5d6125715b139d978887830a5341971aa.tar.gz
android_packages_apps_Trebuchet-b50cc8c5d6125715b139d978887830a5341971aa.tar.bz2
android_packages_apps_Trebuchet-b50cc8c5d6125715b139d978887830a5341971aa.zip
Updating icons for sortcuts when the target app updates.
Bug: 17398260 Change-Id: I055abb971d1f72245e8616ac2ce07bcdf37cdd52
Diffstat (limited to 'src/com/android/launcher3/AllAppsList.java')
-rw-r--r--src/com/android/launcher3/AllAppsList.java14
1 files changed, 3 insertions, 11 deletions
diff --git a/src/com/android/launcher3/AllAppsList.java b/src/com/android/launcher3/AllAppsList.java
index 38d2fa541..ac9a1250e 100644
--- a/src/com/android/launcher3/AllAppsList.java
+++ b/src/com/android/launcher3/AllAppsList.java
@@ -18,10 +18,6 @@ package com.android.launcher3;
import android.content.ComponentName;
import android.content.Context;
-import android.content.Intent;
-import android.content.pm.ActivityInfo;
-import android.content.pm.PackageManager;
-import android.content.pm.ResolveInfo;
import com.android.launcher3.compat.LauncherActivityInfoCompat;
import com.android.launcher3.compat.LauncherAppsCompat;
@@ -101,10 +97,8 @@ class AllAppsList {
final List<LauncherActivityInfoCompat> matches = launcherApps.getActivityList(packageName,
user);
- if (matches.size() > 0) {
- for (LauncherActivityInfoCompat info : matches) {
- add(new AppInfo(context, info, user, mIconCache, null));
- }
+ for (LauncherActivityInfoCompat info : matches) {
+ add(new AppInfo(context, info, user, mIconCache, null));
}
}
@@ -149,9 +143,7 @@ class AllAppsList {
// Find enabled activities and add them to the adapter
// Also updates existing activities with new labels/icons
- int count = matches.size();
- for (int i = 0; i < count; i++) {
- final LauncherActivityInfoCompat info = matches.get(i);
+ for (final LauncherActivityInfoCompat info : matches) {
AppInfo applicationInfo = findApplicationInfoLocked(
info.getComponentName().getPackageName(), user,
info.getComponentName().getClassName());