diff options
author | Christopher Tate <ctate@google.com> | 2015-07-15 14:52:29 -0700 |
---|---|---|
committer | Christopher Tate <ctate@google.com> | 2015-07-15 14:52:29 -0700 |
commit | 7991f7813edb9ab7b79c4f5cf5ea7d51e83d334d (patch) | |
tree | fb8451488818159ff00297a198e53036f82af34e /services/core/java | |
parent | 4e9c63cbe1712f750d5eaaa044e957c7f7696bf8 (diff) | |
download | frameworks_base-7991f7813edb9ab7b79c4f5cf5ea7d51e83d334d.zip frameworks_base-7991f7813edb9ab7b79c4f5cf5ea7d51e83d334d.tar.gz frameworks_base-7991f7813edb9ab7b79c4f5cf5ea7d51e83d334d.tar.bz2 |
Resolve based on the correct user's default browser
Bug 22509659
Change-Id: Iac75e7b40609bf2c81d266e0568fbfbeb71bb3aa
Diffstat (limited to 'services/core/java')
-rw-r--r-- | services/core/java/com/android/server/pm/PackageManagerService.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/services/core/java/com/android/server/pm/PackageManagerService.java b/services/core/java/com/android/server/pm/PackageManagerService.java index ef9bc8b..8f12335 100644 --- a/services/core/java/com/android/server/pm/PackageManagerService.java +++ b/services/core/java/com/android/server/pm/PackageManagerService.java @@ -4716,8 +4716,7 @@ public class PackageManagerService extends IPackageManager.Stub { } else { // Browser/generic handling case. If there's a default browser, go straight // to that (but only if there is no other higher-priority match). - final String defaultBrowserPackageName = getDefaultBrowserPackageName( - UserHandle.myUserId()); + final String defaultBrowserPackageName = getDefaultBrowserPackageName(userId); int maxMatchPrio = 0; ResolveInfo defaultBrowserMatch = null; final int numCandidates = matchAllList.size(); @@ -9929,7 +9928,7 @@ public class PackageManagerService extends IPackageManager.Stub { if (packageName != null) { result |= updateIntentVerificationStatus(packageName, PackageManager.INTENT_FILTER_DOMAIN_VERIFICATION_STATUS_ALWAYS, - UserHandle.myUserId()); + userId); mDefaultPermissionPolicy.grantDefaultPermissionsToDefaultBrowserLPr( packageName, userId); } |