diff options
author | Nicolas Prévot <nprevot@google.com> | 2015-10-22 20:29:51 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2015-10-22 20:29:51 +0000 |
commit | 6666b29cf7c5ddaeae3d66606a9982f7c5cc8686 (patch) | |
tree | 4804300711c1574d578416e117c72b2edbb8e9c0 | |
parent | 79f00cf06f5e70047d73b48d20910b967353b075 (diff) | |
parent | ff91ef8ed1156e29af212417c290c295eb7e0320 (diff) | |
download | frameworks_base-6666b29cf7c5ddaeae3d66606a9982f7c5cc8686.zip frameworks_base-6666b29cf7c5ddaeae3d66606a9982f7c5cc8686.tar.gz frameworks_base-6666b29cf7c5ddaeae3d66606a9982f7c5cc8686.tar.bz2 |
Merge "Don't resolve cross-profile app links without intent picker." into mnc-dr-dev
-rw-r--r-- | services/core/java/com/android/server/pm/PackageManagerService.java | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/services/core/java/com/android/server/pm/PackageManagerService.java b/services/core/java/com/android/server/pm/PackageManagerService.java index 6bf3001..61e5acc 100644 --- a/services/core/java/com/android/server/pm/PackageManagerService.java +++ b/services/core/java/com/android/server/pm/PackageManagerService.java @@ -4772,18 +4772,13 @@ public class PackageManagerService extends IPackageManager.Stub { // First try to add the "always" resolution(s) for the current user, if any if (alwaysList.size() > 0) { 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 { // Add all undefined apps as we want them to appear in the disambiguation dialog. result.addAll(undefinedList); + // Maybe add one for the other profile. if (xpDomainInfo != null && ( xpDomainInfo.bestDomainVerificationStatus - == INTENT_FILTER_DOMAIN_VERIFICATION_STATUS_UNDEFINED - || xpDomainInfo.bestDomainVerificationStatus - == INTENT_FILTER_DOMAIN_VERIFICATION_STATUS_ASK)) { + != INTENT_FILTER_DOMAIN_VERIFICATION_STATUS_NEVER)) { result.add(xpDomainInfo.resolveInfo); } includeBrowser = true; |