Commit cd55bb56 authored by Geoffrey Métais's avatar Geoffrey Métais

Remove unnecessary actions on service destroyed

parent 3519e2a6
......@@ -174,10 +174,13 @@ class PlaylistManager(val service: PlaybackService) : MediaWrapperList.EventList
previous.clear()
currentIndex = -1
mediaList.clear()
if (systemExit) player.release() else player.restart()
medialibrary.resumeBackgroundOperations()
service.onPlaybackStopped()
if (!systemExit) service.hideNotification()
if (systemExit) player.release()
else {
player.restart()
medialibrary.resumeBackgroundOperations()
service.onPlaybackStopped()
service.hideNotification()
}
}
@MainThread
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment