am ddaa142a
: Intent filters need CATEGORY_BROWSABLE to be app-linking eligible
* commit 'ddaa142a094a404d7c5e6d7eea93920f8ed16696': 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