Commit d103df73 authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

Stop service instead of repeating on failure

parent d9faec30
...@@ -691,7 +691,7 @@ class PlaylistManager(val service: PlaybackService) : MediaWrapperList.EventList ...@@ -691,7 +691,7 @@ class PlaylistManager(val service: PlaybackService) : MediaWrapperList.EventList
service.showToast(service.getString( service.showToast(service.getString(
R.string.invalid_location, R.string.invalid_location,
getCurrentMedia()?.getLocation() ?: ""), Toast.LENGTH_SHORT) getCurrentMedia()?.getLocation() ?: ""), Toast.LENGTH_SHORT)
next() if (currentIndex != nextIndex) next() else stop(true)
} }
} }
service.onMediaPlayerEvent(event) 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