Merge "Ignore port when matching with wildcards" into rvc-dev

This commit is contained in:
TreeHugger Robot
2020-05-15 17:38:40 +00:00
committed by Android (Google) Code Review

View File

@@ -1183,7 +1183,8 @@ public class IntentFilter implements Parcelable {
return NO_MATCH_DATA;
}
}
if (mPort >= 0) {
// if we're dealing with wildcard support, we ignore ports
if (!wildcardSupported && mPort >= 0) {
if (mPort != data.getPort()) {
return NO_MATCH_DATA;
}