summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Kenny Guy <kennyguy@google.com> 2014-04-24 15:49:08 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2014-04-24 15:49:08 +0000
commit1c299031982b6145e372aa43a3b8a5c683fad3da (patch)
tree0ef52b344426079819e6baf042bd9daf31b4ac94
parent7cb08dd95eec0d940495d1c29dafce387c7c9d0e (diff)
parent1a4e0b998030bb86196559947f417ee6fe117644 (diff)
Merge "Fix bug with getLauncherActivities ignoring packageName."
-rw-r--r--services/core/java/com/android/server/pm/LauncherAppsService.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/services/core/java/com/android/server/pm/LauncherAppsService.java b/services/core/java/com/android/server/pm/LauncherAppsService.java
index 27c7b39c6e7d..6030d4d2d40d 100644
--- a/services/core/java/com/android/server/pm/LauncherAppsService.java
+++ b/services/core/java/com/android/server/pm/LauncherAppsService.java
@@ -144,6 +144,7 @@ public class LauncherAppsService extends ILauncherApps.Stub {
final Intent mainIntent = new Intent(Intent.ACTION_MAIN, null);
mainIntent.addCategory(Intent.CATEGORY_LAUNCHER);
+ mainIntent.setPackage(packageName);
long ident = Binder.clearCallingIdentity();
try {
List<ResolveInfo> apps = mPm.queryIntentActivitiesAsUser(mainIntent, 0,