commit | df53ad197e45ccc9ff7a8bf6d63e15c61cb51a5a | [log] [tgz] |
---|---|---|
author | Joshua Trask <joshtrask@google.com> | Thu Dec 07 18:19:14 2023 +0000 |
committer | Joshua Trask <joshtrask@google.com> | Fri Dec 08 14:33:51 2023 +0000 |
tree | cd1c9c5d9734c02c4cff7c628d0317ad4b000c0e | |
parent | 702b0bcb8cde313c97cdd461e6c96b8075cf0b6d [diff] |
Move Chooser package-change shortcut reset to list adapter The shortcut-resetting logic was implemented inline in ChooserActivity's handler, and this CL moves the v2 implementation to a new callback in `ChooserListAdapter`. The v1 implementation is left as-is, so the design change is a no-op. This makes the activity-side handling more generic so it can be moved to the pager-adapter (go/chooser-ntab-refactoring), and it fixes a minor bug (b/315460869). This is based on "snapshot 4" and "5" of ag/25335069 (for more context, see that CL or go/chooser-ntab-refactoring). Bug: 310211468, 315460869 Test: `IntentResolver-tests-{unit,activity,integration}`. Change-Id: I29e10c801db553edc8132aaf8372140b4c35740e
IntentResolver
provides the implementation for Intent ACTION_CHOOSER
See also: ShareCompat.IntentBuilder