Fix crash on pinning a target, and launching 'stacked' results

ChooserTargetActionsDialogFragment was attempting to cast it's
containing activity to a specific instance in order to make a
listener call.

ChooserStackedAppDialogFragment has the same issue, downcasting
getActivity().

This change fixes the crashes by introducing a common interface
for both versions.

Bug: 319127480
Test: manual; enable chooser v2, share, pin a target
Change-Id: Ib4817494c257e8620fe742320d3fc157a0daa15e
6 files changed
tree: c6763e7af19f37811d2a205a0b16ef9040b3b1d5
  1. aconfig/
  2. java/
  3. tests/
  4. Android.bp
  5. AndroidManifest-app.xml
  6. AndroidManifest-lib.xml
  7. OWNERS
  8. PREUPLOAD.cfg
  9. proguard.flags
  10. README.md
  11. TEST_MAPPING
README.md

IntentResolver

About

IntentResolver provides the implementation for Intent ACTION_CHOOSER

See also: ShareCompat.IntentBuilder