OSDN Git Service

Resolve all browsers even if there is a default browser.
authorHai Zhang <zhanghai@google.com>
Fri, 18 Jan 2019 02:26:16 +0000 (18:26 -0800)
committerHai Zhang <zhanghai@google.com>
Sat, 19 Jan 2019 00:58:56 +0000 (16:58 -0800)
commite0297133629a562457fc04f112d061c42e2207c9
treef8d6b02b3d46affdd4ccc2d5628cb792dc10db92
parentb1882925b56729b2bacdff9c1a0d65ecc19e4338
Resolve all browsers even if there is a default browser.

PackageManager.queryIntentActivities() handles browser intent
differently when there is a default browser, and only returns the
default browser. Previous code for querying all the browsers all
passed in the PackageManager.MATCH_ALL flag and filtered the result
manually, so we move that logic into RoleBehavior.

Bug: 110557011
Test: build
Change-Id: I928f13d27aca64d49f625dd1ffbd3262b42a06cd
api/system-current.txt
core/java/android/content/pm/ResolveInfo.java