[Android] Fix shuffle mode being systematically erased
Geoffrey Métais
git at videolan.org
Wed Feb 14 17:36:27 CET 2018
vlc-android | branch: 3.0.x | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Feb 13 14:37:48 2018 +0100| [cb6994e597bb1c0efe6afb5a51da1388f9985be2] | committer: Geoffrey Métais
Fix shuffle mode being systematically erased
(cherry picked from commit 19c480506a1f72406cc5dbef01e29ecf11861392)
> https://code.videolan.org/videolan/vlc-android/commit/cb6994e597bb1c0efe6afb5a51da1388f9985be2
---
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 f92137485..1d5ca808b 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