Bottom sheet listing every receiver with its device controls and, under each, the yaacc players running on it (spec 2026-10-23-unified-device-sheet).
More...
|
|
static void | show (FragmentManager fragmentManager) |
| | Shows the normal sheet unless it (or the picker) is already showing or the state is saved (a commit then would throw).
|
| |
| static boolean | showPicker (FragmentManager fragmentManager, String requestKey, String pickId, boolean forShare, String shareName, Collection< String > initialIds) |
| | Shows the receiver picker unless one is already showing or the state is saved.
|
| |
| static boolean | showPicker (FragmentManager fragmentManager, String requestKey, String pickId, boolean forShare, String shareName, Collection< String > initialIds, PickContent content) |
| | As showPicker(FragmentManager, String, String, boolean, String, Collection), for content that is known: the receivers that can not play it are not listed.
|
| |
|
static boolean | isPickerShowing (FragmentManager fragmentManager) |
| | Whether a picker is showing (or being restored).
|
| |
| static void | dismissNormal (FragmentManager fragmentManager) |
| | Closes the normal sheet if it is showing (a pick takes over).
|
| |
| static void | dismissPicker (FragmentManager fragmentManager) |
| | Closes the picker if it is showing.
|
| |
Bottom sheet listing every receiver with its device controls and, under each, the yaacc players running on it (spec 2026-10-23-unified-device-sheet).
While started (visible) it is subscribed to the shared RendererStatusMonitor, to player add/remove events, to the system volume (the volume and mute of every row follow ReceiverVolumeLiveUpdater) and to a 2 s poll; all of them are dropped in onStop() (and in onDestroyView() as a backstop), and callbacks that still arrive afterwards are ignored. An in-app dialog only: nothing is exported and it is opened only through show(FragmentManager) or showPicker. See docs/tech.md, "Unified device sheet", for the Material API details.
Pick mode (showPicker, "Play on..."): the receiver picker of the new layout (and of a shared file in classic). Receivers with checkboxes, a confirm and a cancel button; no controls, no sessions, no status polling. The ticks are the adapter's own set, never the stored receiver selection, so a cancel changes nothing. The answer is delivered once through FragmentManager#setFragmentResult: a confirm with the ticked ids when the confirm button is pressed with at least one receiver (with none, a hint is shown and the sheet stays open), a cancel from onDismiss for every other way of closing (PickSheetResult makes double delivery impossible). A restored sheet whose pick is gone (the host lost it) closes itself without an answer.