OSDN Git Service

Restore auto-launch behavior for ACTION_CHOOSER with a single choice
authorAdam Powell <adamp@google.com>
Thu, 18 Feb 2016 20:43:47 +0000 (12:43 -0800)
committerAdam Powell <adamp@google.com>
Thu, 18 Feb 2016 22:41:41 +0000 (14:41 -0800)
commit2f6ec22f67ae0eb7fdcfe9b04b6202def63bf73e
tree5bd5530e17ed103a5bd3203bfd5144a5a8c13d54
parent1818ef08a033f0f616524766bf2db009b4e30dd7
Restore auto-launch behavior for ACTION_CHOOSER with a single choice

For the initial release of Marshmallow auto-launching was suppressed
for ChooserActivity if there was only a single choice in order to let
the user confirm what would be launched. In practice, many apps use
ACTION_CHOOSER when they should probably use implicit intents, but
still others have use cases where setting a default doesn't make sense
and the user should still be able to make a choice when one is
available.

As the user confirmation didn't buy much in terms of developer API
expectations (ACTION_CHOOSER being a forced choice) and it adds
speedbumps to existing apps in the ecosystem, revert this change.

Bug 27243827

Change-Id: Id8fd5385d5b1f459e80b0096efe7e2944264739a
core/java/com/android/internal/app/ChooserActivity.java