Skip to content
Snippets Groups Projects
Commit cd55bb56 authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

Remove unnecessary actions on service destroyed

parent 3519e2a6
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment