Commit 8e99ace4 authored by Geoffrey Métais's avatar Geoffrey Métais

Don't determine next index during media transition

parent ae7ef700
......@@ -671,11 +671,8 @@ class PlaylistManager(val service: PlaybackService) : MediaWrapperList.EventList
MediaPlayer.Event.EndReached -> {
saveMediaMeta()
if (isBenchmark) player.setPreviousStats()
launch(UI, CoroutineStart.UNDISPATCHED) {
determinePrevAndNextIndices(true)
if (nextIndex == -1) savePosition(true)
next()
}
if (nextIndex == -1) savePosition(true)
next()
}
MediaPlayer.Event.EncounteredError -> {
service.showToast(service.getString(
......
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