[Android] Disable repeat one when user hit next

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


vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Wed Jul 19 07:33:34 2023 +0200| [c49382e3bb3d63816d49f563e3dbf7eceb214270] | committer: Nicolas Pomepuy

Disable repeat one when user hit next

Fixes #2919

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

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

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 17c9141617..a2928b0a8e 100644
--- a/application/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt
+++ b/application/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt
@@ -292,6 +292,9 @@ class PlaylistManager(val service: PlaybackService) : MediaWrapperList.EventList
                 return
             }
             videoBackground = videoBackground || (!player.isVideoPlaying() && player.canSwitchToVideo())
+            if (repeating == PlaybackStateCompat.REPEAT_MODE_ONE) {
+                setRepeatType(PlaybackStateCompat.REPEAT_MODE_NONE)
+            }
         }
         launch { playIndex(currentIndex) }
     }



More information about the Android mailing list