| commit | b26aaeb6cc026ba6641c9c9d8e71ab026085dde7 | [log] [tgz] |
|---|---|---|
| author | Andrey Yepin <ayepin@google.com> | Mon Jun 16 20:07:26 2025 -0700 |
| committer | Andrey Yepin <ayepin@google.com> | Wed Jun 25 17:35:21 2025 -0700 |
| tree | 7c5bde5b2a7a57788a91a67331f99eed0211f275 | |
| parent | 6eca91a705d37f3c9116298a8e9bd419b8852422 [diff] |
Add minimized state for Chooser drawer Implements the Chooser Interactive Session API collapse() call to allow a remote process to put the sharesheet into a minimized state. To manage the two different collapsed heights (normal vs. minimized), the height calculation logic is refactored into a new DrawerCollapseReservedHeightDelegate. This class determines the appropriate collapsible height based on an isMinimized flag. The drawer enters this new minimized state when collapse() is called from the remote controller. It returns to its standard behavior as soon as the user manually interacts with (drags) the drawer. Bug: b/404593897 Test: atest IntentResolver-tests-unit Flag: android.service.chooser.interactive_chooser Change-Id: Ieed81cf1225eddfe7bf47ba079149153f03d6d48
IntentResolver provides the implementation for Intent ACTION_CHOOSER
See also: ShareCompat.IntentBuilder