From 25883c76694c814f6a658add5b73fc57c0a13b64 Mon Sep 17 00:00:00 2001 From: Frederik Feichtmeier Date: Wed, 27 Nov 2024 21:02:29 +0100 Subject: [PATCH] fix: audio service (#1059) --- lib/player/player_service.dart | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/player/player_service.dart b/lib/player/player_service.dart index e4bbd7252..598819dc0 100644 --- a/lib/player/player_service.dart +++ b/lib/player/player_service.dart @@ -581,7 +581,6 @@ class PlayerService { androidNotificationOngoing: true, androidNotificationChannelName: kAppName, androidNotificationChannelId: Platform.isAndroid ? kAndroidAppId : null, - androidStopForegroundOnPause: false, androidNotificationChannelDescription: 'MusicPod Media Controls', ), builder: () { @@ -672,8 +671,7 @@ class PlayerService { _audioHandler!.playbackState.value.copyWith( playing: playing, controls: _determineMediaControls(playing), - processingState: - playing ? AudioProcessingState.ready : AudioProcessingState.idle, + processingState: AudioProcessingState.ready, ), ); } else if (_smtc != null) {