Merge pull request #5052 from ByteHamster/stop-service-properly
Stop service properly when playback ends
This commit is contained in:
commit
6b9821a1f9
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue