Merge "Fix queries tag for browsers matches intent filters incorrectly"

This commit is contained in:
Rhed Jao
2022-01-12 10:44:57 +00:00
committed by Android (Google) Code Review

View File

@@ -1182,7 +1182,7 @@ public class IntentFilter implements Parcelable {
public int match(Uri data, boolean wildcardSupported) {
String host = data.getHost();
if (host == null) {
if (wildcardSupported && mWild) {
if (wildcardSupported && mWild && mHost.isEmpty()) {
// special case, if no host is provided, but the Authority is wildcard, match
return MATCH_CATEGORY_HOST;
} else {