[Android] Allow switching to next track when in repeat one mode

Nicolas Pomepuy git at videolan.org
Wed Jul 19 07:48:17 UTC 2023


vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Thu Jul 13 09:57:31 2023 +0200| [444c3d6c2b42902aa1fa654ffce7f76f30a9d2a3] | committer: Nicolas Pomepuy

Allow switching to next track when in repeat one mode

> https://code.videolan.org/videolan/vlc-android/commit/444c3d6c2b42902aa1fa654ffce7f76f30a9d2a3
---

 application/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/application/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt b/application/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt
index 34527ba541..17c9141617 100644
--- a/application/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt
+++ b/application/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt
@@ -276,7 +276,7 @@ class PlaylistManager(val service: PlaybackService) : MediaWrapperList.EventList
     fun next(force : Boolean = false) {
         mediaList.getMedia(currentIndex)?.let { if (it.type == MediaWrapper.TYPE_VIDEO) saveMediaMeta() }
         val size = mediaList.size()
-        if (force || repeating != PlaybackStateCompat.REPEAT_MODE_ONE) {
+        if (force) {
             previous.push(currentIndex)
             //startup index given?
             if (startupIndex != -1) {



More information about the Android mailing list