Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1a4e0b99 authored by Kenny Guy's avatar Kenny Guy
Browse files

Fix bug with getLauncherActivities ignoring packageName.

Change-Id: Ica5817378a24cb4b68e2c99e37cd214d3fde8ba4
parent 6dd5a1d3
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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,