diff options
author | Sunny Goyal <sunnygoyal@google.com> | 2017-03-01 17:27:16 -0800 |
---|---|---|
committer | Sunny Goyal <sunnygoyal@google.com> | 2017-03-01 17:38:12 -0800 |
commit | f2db25398a029b6f13afccbec331e35c8007dde6 (patch) | |
tree | f00fd4b41dfc5513459a31722a591a76d6cabc8d /src/com/android/launcher3/AllAppsList.java | |
parent | ed7bef195cc1a0363d205df52a7ae6555bfcdaf7 (diff) | |
download | android_packages_apps_Trebuchet-f2db25398a029b6f13afccbec331e35c8007dde6.tar.gz android_packages_apps_Trebuchet-f2db25398a029b6f13afccbec331e35c8007dde6.tar.bz2 android_packages_apps_Trebuchet-f2db25398a029b6f13afccbec331e35c8007dde6.zip |
Fixing wrong check being used for application status
Earlier we were relying on activity list to check is an app is
installed or not. It fails if the app only exposes widgets and
no visible activity. Hence dragging an icon to AppInfo sometimes
causes the icon to get disappear.
Bug: 33241335
Change-Id: Ieb71e298a0930dd0a831cf09bd1e998514a427fd
Diffstat (limited to 'src/com/android/launcher3/AllAppsList.java')
-rw-r--r-- | src/com/android/launcher3/AllAppsList.java | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/com/android/launcher3/AllAppsList.java b/src/com/android/launcher3/AllAppsList.java index 9cce9b188..5b42cad96 100644 --- a/src/com/android/launcher3/AllAppsList.java +++ b/src/com/android/launcher3/AllAppsList.java @@ -208,16 +208,6 @@ public class AllAppsList { } /** - * Query the launcher apps service for whether the supplied package has - * MAIN/LAUNCHER activities in the supplied package. - */ - static boolean packageHasActivities(Context context, String packageName, - UserHandle user) { - final LauncherAppsCompat launcherApps = LauncherAppsCompat.getInstance(context); - return launcherApps.getActivityList(packageName, user).size() > 0; - } - - /** * Returns whether <em>apps</em> contains <em>component</em>. */ private static boolean findActivity(ArrayList<AppInfo> apps, ComponentName component, |