mirror of
https://github.com/zarzet/SpotiFLAC-Mobile.git
synced 2026-07-29 23:38:50 +02:00
feat(player): swipe the mini player away to stop playback
Horizontal Dismissible on the bar; stop() now also clears the current media item so the bar (and any listener of it) sees the session end.
This commit is contained in:
@@ -580,6 +580,8 @@ class MusicPlayerHandler extends BaseAudioHandler
|
||||
_userPaused = false;
|
||||
_recent.clear();
|
||||
_playHistory.clear();
|
||||
// A stopped session has no current item; this also hides the mini player.
|
||||
mediaItem.add(null);
|
||||
_broadcastState(playerState: PlayerState.stopped);
|
||||
await super.stop();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user