[Android] Fix shuffle mode being systematically erased

Geoffrey Métais git at videolan.org
Tue Feb 13 14:38:25 CET 2018


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Feb 13 14:37:48 2018 +0100| [19c480506a1f72406cc5dbef01e29ecf11861392] | committer: Geoffrey Métais

Fix shuffle mode being systematically erased

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

 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 f4f815ebc..2074b8b7d 100644
--- a/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt
+++ b/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt
@@ -123,7 +123,7 @@ class PlaylistManager(val service: PlaybackService) : MediaWrapperList.EventList
             }.await()
             // load playlist
             shuffling = settings.getBoolean(if (audio) "audio_shuffling" else "media_shuffling", false)
-            setRepeatType(settings.getInt(if (audio) "audio_repeating" else "media_repeating", Constants.REPEAT_NONE))
+            repeating = settings.getInt(if (audio) "audio_repeating" else "media_repeating", Constants.REPEAT_NONE)
             val position = settings.getInt(if (audio) "position_in_audio_list" else "position_in_media_list", 0)
             savedTime = settings.getLong(if (audio) "position_in_song" else "position_in_media", -1)
             if (!audio) {



More information about the Android mailing list