Skip to content

Commit

Permalink
fix(android): audio notification stuck in play state
Browse files Browse the repository at this point in the history
  • Loading branch information
KRTirtho committed Mar 12, 2023
1 parent a7d79d1 commit 448c9b3
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions lib/services/mobile_audio_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,6 @@ class MobileAudioService extends BaseAudioHandler {
audioPlayer.onPositionChanged.listen((pos) async {
playbackState.add(await _transformEvent());
});

audioPlayer.onPlayerComplete.listen((_) {
if (playlist == null) {
playbackState.add(
PlaybackState(
processingState: AudioProcessingState.completed,
),
);
}
});
}

void addItem(MediaItem item) {
Expand Down

0 comments on commit 448c9b3

Please sign in to comment.