Skip to content

Commit c1b9ee1

Browse files
committed
Use flag PackageManager.MATCH_ALL to search all Android browsers instead of just default
1 parent 8f7856f commit c1b9ee1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/android/helpers/CustomTabsHelper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public static String getPackageNameToUse(Context context) {
7373
}
7474

7575
// Get all apps that can handle VIEW intents.
76-
List<ResolveInfo> resolvedActivityList = pm.queryIntentActivities(activityIntent, 0);
76+
List<ResolveInfo> resolvedActivityList = pm.queryIntentActivities(activityIntent, PackageManager.MATCH_ALL);
7777
List<String> packagesSupportingCustomTabs = new ArrayList<>();
7878
for (ResolveInfo info : resolvedActivityList) {
7979
Intent serviceIntent = new Intent();

0 commit comments

Comments
 (0)