[Android] Audio : Keep shuffle mode when clicking twice on fab shuffle button
Alexandre Perraud
git at videolan.org
Thu May 11 18:07:16 CEST 2017
vlc-android | branch: master | Alexandre Perraud <4leyx4ndre at gmail.com> | Thu May 11 18:04:00 2017 +0200| [2c74b883201cfee4a4530c8ed1d7aee5b7b3ff89] | committer: Alexandre Perraud
Audio : Keep shuffle mode when clicking twice on fab shuffle button
> https://code.videolan.org/videolan/vlc-android/commit/2c74b883201cfee4a4530c8ed1d7aee5b7b3ff89
---
vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserFragment.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserFragment.java b/vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserFragment.java
index 54c2f2a..2fc6bb7 100644
--- a/vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserFragment.java
+++ b/vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserFragment.java
@@ -386,7 +386,8 @@ public class AudioBrowserFragment extends BaseAudioBrowser implements SwipeRefre
int randomSong = rand.nextInt(count);
if (mService != null) {
mService.load(list, randomSong);
- mService.shuffle();
+ if (!mService.isShuffling())
+ mService.shuffle();
}
}
}
More information about the Android
mailing list