diff options
author | Fabrice Di Meglio <fdimeglio@google.com> | 2015-05-01 18:52:29 -0700 |
---|---|---|
committer | Fabrice Di Meglio <fdimeglio@google.com> | 2015-05-01 18:52:29 -0700 |
commit | 4c92949993e77e1727f5d967b070074dd8f67a5c (patch) | |
tree | 997f9042e4e2f5fffd47f0b6d1dc6fee53aa2ae2 | |
parent | 7d7094fd2b1aadb9c50df88f13c116e1a18577ed (diff) | |
download | frameworks_base-4c92949993e77e1727f5d967b070074dd8f67a5c.zip frameworks_base-4c92949993e77e1727f5d967b070074dd8f67a5c.tar.gz frameworks_base-4c92949993e77e1727f5d967b070074dd8f67a5c.tar.bz2 |
Add user selectable Default Browser feature - part 4
- when selecting a default Browser App, make the others Browser Apps
not capable to open URLs automatically
See bug #20144393
Change-Id: I6ffaafbfb1a2571c0eba90af5c1648150b020559
-rw-r--r-- | services/core/java/com/android/server/pm/PackageManagerService.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/services/core/java/com/android/server/pm/PackageManagerService.java b/services/core/java/com/android/server/pm/PackageManagerService.java index e42cb3c..d618963 100644 --- a/services/core/java/com/android/server/pm/PackageManagerService.java +++ b/services/core/java/com/android/server/pm/PackageManagerService.java @@ -9115,7 +9115,11 @@ public class PackageManagerService extends IPackageManager.Stub { @Override public boolean setDefaultBrowserPackageName(String packageName, int userId) { synchronized (mPackages) { - return mSettings.setDefaultBrowserPackageNameLPr(packageName, userId); + boolean result = mSettings.setDefaultBrowserPackageNameLPr(packageName, userId); + result |= updateIntentVerificationStatus(packageName, + PackageManager.INTENT_FILTER_DOMAIN_VERIFICATION_STATUS_ALWAYS, + UserHandle.myUserId()); + return result; } } |