summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Nicolas Prévot <nprevot@google.com> 2015-10-22 20:56:19 +0000
committer android-build-merger <android-build-merger@google.com> 2015-10-22 20:56:19 +0000
commitc982b407b9ff83465a12ec9225409edf45828ef0 (patch)
tree57cc7835a180fc4b66073a768f1939f3eea70268
parent3b7acbb86207df78eccfeb40aabcc8543703a58f (diff)
parente1be56cdfff431985ffd931bdd7c001e4c87478d (diff)
Merge "Don\'t resolve cross-profile app links without intent picker." into mnc-dr-dev am: 6666b29cf7 am: f31628f58b am: d7688f5933
am: e1be56cdff * commit 'e1be56cdfff431985ffd931bdd7c001e4c87478d': Don't resolve cross-profile app links without intent picker.
-rw-r--r--services/core/java/com/android/server/pm/PackageManagerService.java9
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 496653ef106c..b3e7f5f01010 100644
--- a/services/core/java/com/android/server/pm/PackageManagerService.java
+++ b/services/core/java/com/android/server/pm/PackageManagerService.java
@@ -4811,18 +4811,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;