Stop the radio when the collapsed player is dismissed
This commit is contained in:
@@ -147,7 +147,10 @@ fun PlayerView(
|
|||||||
BottomSheet(
|
BottomSheet(
|
||||||
state = layoutState,
|
state = layoutState,
|
||||||
modifier = modifier,
|
modifier = modifier,
|
||||||
onDismiss = binder.player::clearMediaItems,
|
onDismiss = {
|
||||||
|
binder.stopRadio()
|
||||||
|
binder.player.clearMediaItems()
|
||||||
|
},
|
||||||
collapsedContent = {
|
collapsedContent = {
|
||||||
Row(
|
Row(
|
||||||
horizontalArrangement = Arrangement.spacedBy(12.dp),
|
horizontalArrangement = Arrangement.spacedBy(12.dp),
|
||||||
|
|||||||
Reference in New Issue
Block a user