Remove direct reference to Activity getIntent()

ActivityLaunch provides activity-scoped values from launch time. This
abstraction is important for testability, allowing us to consistently
test startup conditions in isolation without involving actually
starting an activity, or depending on the state of the system in
any way.

Test: atest IntentResolver-tests-activity
Test: atest IntentResolver-tests-unit
Change-Id: Iec8b6b7067c6535f723ab47d712e1a937000e1c4
1 file changed
tree: c44df4cedaafc2c51ebc768daa19e401693aaac6
  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