Skip to content

Commit

Permalink
Fixed media notification on idle (issue ryanheise#1083)
Browse files Browse the repository at this point in the history
  • Loading branch information
Zensonaton committed Dec 14, 2024
1 parent a06ea04 commit 5636135
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -574,10 +574,11 @@ else if (errorMessage != null)
}

if (oldProcessingState != AudioProcessingState.idle && processingState == AudioProcessingState.idle) {
// TODO: Handle completed state as well?
stop();
legacyStopForeground(true);
releaseWakeLock();
stop();
} else if (processingState != AudioProcessingState.idle && notificationChanged) {
updateNotification();
exitForegroundState();
}
}

Expand Down

0 comments on commit 5636135

Please sign in to comment.