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

Commit 80ee6bdc authored by Nicolas Prevot's avatar Nicolas Prevot Committed by Android Git Automerger
Browse files

am 8c94276a: am 58e96946: Using the selector to check if an intent can be forwarded.

* commit '8c94276af983b20f725ce89767f979e2a2208e73':
  Using the selector to check if an intent can be forwarded.
parents 3a68e54c bfb22aea
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -83,7 +83,11 @@ public class IntentForwarderActivity extends Activity {
        String resolvedType = newIntent.resolveTypeIfNeeded(getContentResolver());
        boolean canForward = false;
        try {
            canForward = ipm.canForwardTo(newIntent, resolvedType, callingUserId,
            Intent selector = newIntent.getSelector();
            if (selector == null) {
                selector = newIntent;
            }
            canForward = ipm.canForwardTo(selector, resolvedType, callingUserId,
                    userDest.getIdentifier());
        } catch (RemoteException e) {
            Slog.e(TAG, "PackageManagerService is dead?");