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

Commit b9616408 authored by Ricky Wai's avatar Ricky Wai Committed by Android (Google) Code Review
Browse files

Merge "Do not return AppDetailsActivity in PackageInfo"

parents 7d9c08d3 905908f7
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -514,7 +514,8 @@ public class LauncherApps {

    /**
     * Retrieves a list of launchable activities that match {@link Intent#ACTION_MAIN} and
     * {@link Intent#CATEGORY_LAUNCHER}, for a specified user.
     * {@link Intent#CATEGORY_LAUNCHER}, for a specified user. Result may include
     * synthesized activities like app details Activity injected by system.
     *
     * @param packageName The specific package to query. If null, it checks all installed packages
     *            in the profile.
+3 −0
Original line number Diff line number Diff line
@@ -724,6 +724,9 @@ public class PackageParser {
                for (int i = 0; i < N; i++) {
                    final Activity a = p.activities.get(i);
                    if (state.isMatch(a.info, flags)) {
                        if (PackageManager.APP_DETAILS_ACTIVITY_CLASS_NAME.equals(a.className)) {
                            continue;
                        }
                        res[num++] = generateActivityInfo(a, flags, state, userId);
                    }
                }