Merge pull request #5052 from ByteHamster/stop-service-properly

Stop service properly when playback ends
This commit is contained in:
ByteHamster 2021-03-27 12:20:31 +01:00 committed by GitHub
commit 6b9821a1f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -1052,6 +1052,7 @@ public class PlaybackService extends MediaBrowserServiceCompat {
PlaybackPreferences.writeNoMediaPlaying();
if (!isCasting) {
stateManager.stopForeground(true);
stateManager.stopService();
}
}
if (mediaType == null) {