From afa7afda4fb2b8236957bf8a9eee6c4c32e96d62 Mon Sep 17 00:00:00 2001 From: Fabrice Di Meglio Date: Tue, 28 Apr 2015 16:58:05 -0700 Subject: [PATCH] Add user selectable Default Browser feature - part 2 - show full list of Browsers This change depends on a Framework change which adds a new MATCH_ALL constant flag in PackageManager for getting the full list. See bug #20144393 Change-Id: I6ed29cbac28aaf1a955541db0615a1d20d267fd5 --- .../settings/applications/DefaultBrowserPreference.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/com/android/settings/applications/DefaultBrowserPreference.java b/src/com/android/settings/applications/DefaultBrowserPreference.java index da7f112d331..44797898f40 100644 --- a/src/com/android/settings/applications/DefaultBrowserPreference.java +++ b/src/com/android/settings/applications/DefaultBrowserPreference.java @@ -56,7 +56,8 @@ public class DefaultBrowserPreference extends AppListPreference { intent.setData(Uri.parse("http:")); // Resolve that intent and check that the handleAllWebDataURI boolean is set - List list = mPm.queryIntentActivitiesAsUser(intent, 0, UserHandle.myUserId()); + List list = mPm.queryIntentActivitiesAsUser(intent, PackageManager.MATCH_ALL, + UserHandle.myUserId()); final int count = list.size(); for (int i=0; i