[Android] Stop service instead of repeating on failure
Geoffrey Métais
git at videolan.org
Mon May 7 11:53:59 CEST 2018
vlc-android | branch: 3.0.x | Geoffrey Métais <geoffrey.metais at gmail.com> | Mon May 7 11:52:54 2018 +0200| [570d3344a7c101a829df8da6fcebb5cfc788b5c0] | committer: Geoffrey Métais
Stop service instead of repeating on failure
> https://code.videolan.org/videolan/vlc-android/commit/570d3344a7c101a829df8da6fcebb5cfc788b5c0
---
vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt b/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt
index 170e3da38..209a31ec8 100644
--- a/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt
+++ b/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt
@@ -681,7 +681,7 @@ class PlaylistManager(val service: PlaybackService) : MediaWrapperList.EventList
service.showToast(service.getString(
R.string.invalid_location,
getCurrentMedia()?.getLocation() ?: ""), Toast.LENGTH_SHORT)
- next()
+ if (nextIndex != currentIndex) next() else stop(true)
}
}
service.onMediaPlayerEvent(event)
More information about the Android
mailing list