Use a viewmodel property instead of reaching to the repository

A small adjustment to ag/28621884 to use the
ShareouselViewModel.hasSelectedItems property instead of reaching to the
selection repository.

Fix: 349468879
Test: atest IntentResolver-tests-unit
Test: manual functionality testing
Flag: com.android.intentresolver.unselect_final_item
Change-Id: Ifded6890acd116a6dacb76ca2adccafccc1fb5f3
2 files changed
tree: fc76a1c244a9edfd421856899c5c8255d0dfb958
  1. aconfig/
  2. java/
  3. tests/
  4. Android.bp
  5. AndroidManifest-app.xml
  6. AndroidManifest-lib.xml
  7. lint-baseline.xml
  8. OWNERS
  9. PREUPLOAD.cfg
  10. proguard.flags
  11. README.md
  12. TEST_MAPPING
README.md

IntentResolver

About

IntentResolver provides the implementation for Intent ACTION_CHOOSER

See also: ShareCompat.IntentBuilder