OSDN Git Service

Chooser filtering and caller direct share targets
authorAdam Powell <adamp@google.com>
Thu, 7 Apr 2016 22:14:18 +0000 (15:14 -0700)
committerAdam Powell <adamp@google.com>
Fri, 8 Apr 2016 15:40:38 +0000 (08:40 -0700)
commit52c39215db2a0e1d339733e06284a2ba81e4c794
treeffd77a5f1d778f4a0c8178abfc405b54f1673fc7
parentc724dcf23c5e2ebd22c042a8a6f2424b7e9d5029
Chooser filtering and caller direct share targets

Let apps invoking the system chooser specify components to filter out
such as themselves; this will prevent duplicate nonsensical UX where
it doesn't make sense for an app to share to itself.

Similarly, let apps provide their own Direct Share targets for when
they do want to let users share via their own internal services in the
same UI. These options can be used together.

Also fix a bug where a lingering binder reference from a remote
ChooserTargetService that hasn't been GC'd in the remote process could
keep an active reference to a ChooserActivity instance.

Bug 28073484

Change-Id: Ib613b1153b49dfedf79574b1af7c45379eceec24
api/current.txt
api/system-current.txt
api/test-current.txt
core/java/android/content/Intent.java
core/java/com/android/internal/app/ChooserActivity.java
core/java/com/android/internal/app/ResolverActivity.java