Commit 57cb29f3 authored by Geoffrey Métais's avatar Geoffrey Métais

Do not release player on playlist end

parent 3a6d70be
......@@ -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)
......
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