Stop service properly when playback ends

This commit is contained in:
ByteHamster 2021-03-26 18:00:24 +01:00
parent 66cc86a76b
commit 4f5d076cb9

View File

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