diff options
author | Sunny Goyal <sunnygoyal@google.com> | 2017-01-05 15:22:41 -0800 |
---|---|---|
committer | Sunny Goyal <sunnygoyal@google.com> | 2017-01-11 13:06:50 -0800 |
commit | 3e9be43b6ea75c8b82b57aa58508a0c3e8e1d721 (patch) | |
tree | b61ddf897843b437ea3776dbe151588ab2a663eb /src/com/android/launcher3/AllAppsList.java | |
parent | 87f784c285fdeed9091a4de8b9b44db3eca677d8 (diff) | |
download | android_packages_apps_Trebuchet-3e9be43b6ea75c8b82b57aa58508a0c3e8e1d721.tar.gz android_packages_apps_Trebuchet-3e9be43b6ea75c8b82b57aa58508a0c3e8e1d721.tar.bz2 android_packages_apps_Trebuchet-3e9be43b6ea75c8b82b57aa58508a0c3e8e1d721.zip |
No more LauncherActivityInfoCompat
Bug: 32745285
Change-Id: I00f13794d5dc0a2b1fe03ec74de36018f22eb386
Diffstat (limited to 'src/com/android/launcher3/AllAppsList.java')
-rw-r--r-- | src/com/android/launcher3/AllAppsList.java | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/com/android/launcher3/AllAppsList.java b/src/com/android/launcher3/AllAppsList.java index 2bf014ad5..9cce9b188 100644 --- a/src/com/android/launcher3/AllAppsList.java +++ b/src/com/android/launcher3/AllAppsList.java @@ -18,9 +18,9 @@ package com.android.launcher3; import android.content.ComponentName; import android.content.Context; +import android.content.pm.LauncherActivityInfo; import android.os.UserHandle; -import com.android.launcher3.compat.LauncherActivityInfoCompat; import com.android.launcher3.compat.LauncherAppsCompat; import com.android.launcher3.util.FlagOp; import com.android.launcher3.util.ItemInfoMatcher; @@ -65,7 +65,7 @@ public class AllAppsList { * * If the app is already in the list, doesn't add it. */ - public void add(AppInfo info, LauncherActivityInfoCompat activityInfo) { + public void add(AppInfo info, LauncherActivityInfo activityInfo) { if (!mAppFilter.shouldShowApp(info.componentName)) { return; } @@ -99,10 +99,10 @@ public class AllAppsList { */ public void addPackage(Context context, String packageName, UserHandle user) { final LauncherAppsCompat launcherApps = LauncherAppsCompat.getInstance(context); - final List<LauncherActivityInfoCompat> matches = launcherApps.getActivityList(packageName, + final List<LauncherActivityInfo> matches = launcherApps.getActivityList(packageName, user); - for (LauncherActivityInfoCompat info : matches) { + for (LauncherActivityInfo info : matches) { add(new AppInfo(context, info, user), info); } } @@ -150,7 +150,7 @@ public class AllAppsList { */ public void updatePackage(Context context, String packageName, UserHandle user) { final LauncherAppsCompat launcherApps = LauncherAppsCompat.getInstance(context); - final List<LauncherActivityInfoCompat> matches = launcherApps.getActivityList(packageName, + final List<LauncherActivityInfo> matches = launcherApps.getActivityList(packageName, user); if (matches.size() > 0) { // Find disabled/removed activities and remove them from data and add them @@ -168,7 +168,7 @@ public class AllAppsList { // Find enabled activities and add them to the adapter // Also updates existing activities with new labels/icons - for (final LauncherActivityInfoCompat info : matches) { + for (final LauncherActivityInfo info : matches) { AppInfo applicationInfo = findApplicationInfoLocked( info.getComponentName().getPackageName(), user, info.getComponentName().getClassName()); @@ -197,9 +197,9 @@ public class AllAppsList { /** * Returns whether <em>apps</em> contains <em>component</em>. */ - private static boolean findActivity(List<LauncherActivityInfoCompat> apps, + private static boolean findActivity(List<LauncherActivityInfo> apps, ComponentName component) { - for (LauncherActivityInfoCompat info : apps) { + for (LauncherActivityInfo info : apps) { if (info.getComponentName().equals(component)) { return true; } |