OSDN Git Service

Update ChooserTarget constructor to take ComponentName, Bundle
authorAdam Powell <adamp@google.com>
Thu, 16 Jul 2015 03:14:57 +0000 (20:14 -0700)
committerAdam Powell <adamp@google.com>
Thu, 16 Jul 2015 23:29:59 +0000 (16:29 -0700)
commit666d82a6d5c6a90e87591aea1aabac3d647cd541
tree1ed5786f84c0ee6fc6695c6e81f58684cd14cede
parent5aff3b5489262ccff4b6f9e18e0d990ebfe4d7bc
Update ChooserTarget constructor to take ComponentName, Bundle

Simplify ChooserTarget handling by requiring a target component and an
extras bundle instead of a full PendingIntent/IntentSender. This
simplifies the handling of URI grants from sending apps.

Prune ChooserTargets that point at ComponentNames that don't share a
package with the original matching Activity target or that aren't
exported so that we don't show the user something they can't launch.

Bug 22516282

Change-Id: I3439c0910b4fa4f95c7a881b529942c96ffc953e
api/current.txt
api/system-current.txt
core/java/android/service/chooser/ChooserTarget.java
core/java/android/service/chooser/ChooserTargetService.java
core/java/android/service/chooser/IChooserTargetResult.aidl
core/java/com/android/internal/app/ChooserActivity.java