mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-09-13 07:55:18 +00:00
fix(android): audio notification stuck in play state
This commit is contained in:
parent
a7d79d12cc
commit
448c9b39f4
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user