Separates the Chooser and Resolver activities

This change removes the class inheritence relationship between these
two activities. They bear only historic similarities and have remained
related and grown together unnaturually over the years.

This only separates the dependency at the class level while much of the
implementation relies on classes which also form a hierarchy. Because
of this, most of the common code is left duplicated in both locations
pending other cleanup work.

Other notes:

* Variables which depended on class have now been logically inlined,
  simplifying or removing the code in each location
* All code related to 'profile switch button' removed (obsolete UI)

Bug: 309960444
Test: atest com.android.intentresolver.v2
Change-Id: I7c754388387ea7f23d534d5c487416e0edaaf968
20 files changed
tree: 7b718a682b8c1f2e3b59584733c2d1cee7eec982
  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