Skip to content

Commit

Permalink
Stop the radio when the collapsed player is dismissed
Browse files Browse the repository at this point in the history
  • Loading branch information
vfsfitvnm committed Jul 29, 2022
1 parent 4aa94bc commit 89c3ecd
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 89c3ecd

Please sign in to comment.