Fix erroneous selection callback invocation.

Setting the initial selection was treated as a selection change and
caused the selection callback invocation.
Fixed by making PreviewsSelectionRepository and TargetIntentRepository
publishing annotated statuses that allow their clients to avoid
performing unnecessary actions.

Fix: 330000366
Test: atest IntentResolver-tests-unit
Test: verified with an injected logging
Change-Id: I1d8bee97ebf0ecaf9db98988a96af887ee0d9cd7
12 files changed
tree: f3a7b87177977037503b7bfba3e184156c7a99bb
  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