commit | 3453b29f41a51981f37cf424b13b4597849f8543 | [log] [tgz] |
---|---|---|
author | Mark Renouf <mrenouf@google.com> | Mon Jan 08 14:25:44 2024 -0500 |
committer | Mark Renouf <mrenouf@google.com> | Tue Jan 09 11:06:03 2024 -0500 |
tree | c6763e7af19f37811d2a205a0b16ef9040b3b1d5 | |
parent | 9b40802b0f92623e2900b8f4135dfd326c572a99 [diff] |
Fix crash on pinning a target, and launching 'stacked' results ChooserTargetActionsDialogFragment was attempting to cast it's containing activity to a specific instance in order to make a listener call. ChooserStackedAppDialogFragment has the same issue, downcasting getActivity(). This change fixes the crashes by introducing a common interface for both versions. Bug: 319127480 Test: manual; enable chooser v2, share, pin a target Change-Id: Ib4817494c257e8620fe742320d3fc157a0daa15e
IntentResolver
provides the implementation for Intent ACTION_CHOOSER
See also: ShareCompat.IntentBuilder