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

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

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

* commit '58e9694623705b3916f0256c26c88ea3ae18b47b':
  Using the selector to check if an intent can be forwarded.
parents 2553d7a1 ce673ffd
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?");