Stop the radio when the collapsed player is dismissed

This commit is contained in:
vfsfitvnm 2022-07-29 18:46:23 +02:00
parent 4aa94bcc7c
commit 89c3ecdd06

View file

@ -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),