* commit '649cc87f994c0010e8fd7567b7cece77ffffb0fd': Intent filters need CATEGORY_BROWSABLE to be app-linking eligible
This commit is contained in:
@@ -1130,8 +1130,9 @@ public final class Utils {
|
|||||||
}
|
}
|
||||||
if (filters != null && filters.size() > 0) {
|
if (filters != null && filters.size() > 0) {
|
||||||
for (IntentFilter filter : filters) {
|
for (IntentFilter filter : filters) {
|
||||||
if (filter.hasDataScheme(IntentFilter.SCHEME_HTTP) ||
|
if (filter.hasCategory(Intent.CATEGORY_BROWSABLE)
|
||||||
filter.hasDataScheme(IntentFilter.SCHEME_HTTPS)) {
|
&& (filter.hasDataScheme(IntentFilter.SCHEME_HTTP) ||
|
||||||
|
filter.hasDataScheme(IntentFilter.SCHEME_HTTPS))) {
|
||||||
result.addAll(filter.getHostsList());
|
result.addAll(filter.getHostsList());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user