Merge "Don\'t resolve cross-profile app links without intent picker." into mnc-dr-dev
am: 6666b29cf7
* commit '6666b29cf7c5ddaeae3d66606a9982f7c5cc8686':
Don't resolve cross-profile app links without intent picker.
This commit is contained in:
@@ -4772,18 +4772,13 @@ public class PackageManagerService extends IPackageManager.Stub {
|
|||||||
// First try to add the "always" resolution(s) for the current user, if any
|
// First try to add the "always" resolution(s) for the current user, if any
|
||||||
if (alwaysList.size() > 0) {
|
if (alwaysList.size() > 0) {
|
||||||
result.addAll(alwaysList);
|
result.addAll(alwaysList);
|
||||||
// if there is an "always" for the parent user, add it.
|
|
||||||
} else if (xpDomainInfo != null && xpDomainInfo.bestDomainVerificationStatus
|
|
||||||
== INTENT_FILTER_DOMAIN_VERIFICATION_STATUS_ALWAYS) {
|
|
||||||
result.add(xpDomainInfo.resolveInfo);
|
|
||||||
} else {
|
} else {
|
||||||
// Add all undefined apps as we want them to appear in the disambiguation dialog.
|
// Add all undefined apps as we want them to appear in the disambiguation dialog.
|
||||||
result.addAll(undefinedList);
|
result.addAll(undefinedList);
|
||||||
|
// Maybe add one for the other profile.
|
||||||
if (xpDomainInfo != null && (
|
if (xpDomainInfo != null && (
|
||||||
xpDomainInfo.bestDomainVerificationStatus
|
xpDomainInfo.bestDomainVerificationStatus
|
||||||
== INTENT_FILTER_DOMAIN_VERIFICATION_STATUS_UNDEFINED
|
!= INTENT_FILTER_DOMAIN_VERIFICATION_STATUS_NEVER)) {
|
||||||
|| xpDomainInfo.bestDomainVerificationStatus
|
|
||||||
== INTENT_FILTER_DOMAIN_VERIFICATION_STATUS_ASK)) {
|
|
||||||
result.add(xpDomainInfo.resolveInfo);
|
result.add(xpDomainInfo.resolveInfo);
|
||||||
}
|
}
|
||||||
includeBrowser = true;
|
includeBrowser = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user