commit | 1a4e0b998030bb86196559947f417ee6fe117644 | [log] [tgz] |
---|---|---|
author | Kenny Guy <kennyguy@google.com> | Wed Apr 23 21:00:45 2014 +0100 |
committer | Kenny Guy <kennyguy@google.com> | Thu Apr 24 12:28:04 2014 +0100 |
tree | 74a615212df0ddd29ed6b7fbf2755279eed449d5 | |
parent | 6dd5a1d348900f4ebf10c96f0af7166219729024 [diff] |
Fix bug with getLauncherActivities ignoring packageName. Change-Id: Ica5817378a24cb4b68e2c99e37cd214d3fde8ba4
diff --git a/services/core/java/com/android/server/pm/LauncherAppsService.java b/services/core/java/com/android/server/pm/LauncherAppsService.java index 27c7b39..6030d4d 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 @@ 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,