Stop the radio when the collapsed player is dismissed
This commit is contained in:
parent
4aa94bcc7c
commit
89c3ecdd06
1 changed files with 4 additions and 1 deletions
|
@ -147,7 +147,10 @@ fun PlayerView(
|
|||
BottomSheet(
|
||||
state = layoutState,
|
||||
modifier = modifier,
|
||||
onDismiss = binder.player::clearMediaItems,
|
||||
onDismiss = {
|
||||
binder.stopRadio()
|
||||
binder.player.clearMediaItems()
|
||||
},
|
||||
collapsedContent = {
|
||||
Row(
|
||||
horizontalArrangement = Arrangement.spacedBy(12.dp),
|
||||
|
|
Loading…
Reference in a new issue