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

Commit b01b597f authored by Paul Hobbs's avatar Paul Hobbs
Browse files

Revert "In getMatchingShareTargets, add callerLauncher to fetch sharesheet marked pin info."

This reverts commit baafdbf3.

Reason for revert: Bypassed presubmit caused b/227546199

Change-Id: I38737da70501d6b5dd0a1e1dc99996478e80b6f2
parent baafdbf3
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -897,12 +897,8 @@ class ShortcutPackage extends ShortcutPackageItem {

        // Get the list of all dynamic shortcuts in this package.
        final ArrayList<ShortcutInfo> shortcuts = new ArrayList<>();
        // Pass callingLauncher to ensure pinned flag marked by system ui, e.g. ShareSheet, are
        // included in the result
        findAll(shortcuts, ShortcutInfo::isNonManifestVisible,
                ShortcutInfo.CLONE_REMOVE_FOR_APP_PREDICTION,
                mShortcutUser.mService.mContext.getPackageName(),
                0, /*getPinnedByAnyLauncher=*/ false);
                ShortcutInfo.CLONE_REMOVE_FOR_APP_PREDICTION);

        final List<ShortcutManager.ShareShortcutInfo> result = new ArrayList<>();
        for (int i = 0; i < shortcuts.size(); i++) {