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

Do not release player on playlist end

parent 3a6d70be
No related branches found
No related tags found
No related merge requests found
......@@ -299,7 +299,7 @@ class PlaylistManager(val service: PlaybackService) : MediaWrapperList.EventList
private fun skipMedia() {
if (currentIndex != nextIndex) next()
else stop(false)
else stop()
}
fun onServiceDestroyed() {
......@@ -682,7 +682,7 @@ class PlaylistManager(val service: PlaybackService) : MediaWrapperList.EventList
service.showToast(service.getString(
R.string.invalid_location,
getCurrentMedia()?.getLocation() ?: ""), Toast.LENGTH_SHORT)
if (nextIndex != currentIndex) next() else stop(true)
if (nextIndex != currentIndex) next() else stop()
}
}
service.onMediaPlayerEvent(event)
......
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