Skip to content

Commit

Permalink
misc: Get rid of systemActions in MediaControls
Browse files Browse the repository at this point in the history
it doesn't seem to affect anything
  • Loading branch information
khaled-0 committed Dec 2, 2024
1 parent 368679e commit 0234afe
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions lib/provider/player_provider.dart
Original file line number Diff line number Diff line change
Expand Up @@ -73,15 +73,6 @@ class PlayerProvider extends ChangeNotifier {
? AudioProcessingState.loading
: AudioProcessingState.values.byName(state.processingState.name),
controls: mediaControls,
systemActions: {
if (hasPrevious) MediaAction.skipToPrevious,
if (!buffering) ...{
if (player.playing) MediaAction.pause else MediaAction.pause
},
if (hasNext) MediaAction.skipToNext,
if (!_buffering) MediaAction.seek,
MediaAction.custom,
},
)),
);

Expand Down

0 comments on commit 0234afe

Please sign in to comment.