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

Commit 241892df authored by Paul Hobbs's avatar Paul Hobbs Committed by Android (Google) Code Review
Browse files

Merge "Revert "In getMatchingShareTargets, add callerLauncher to fetch...

Merge "Revert "In getMatchingShareTargets, add callerLauncher to fetch sharesheet marked pin info.""
parents 8cf7dea5 b01b597f
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -894,12 +894,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++) {