[Android] Fix shuffle button not shown at play start

Geoffrey Métais git at videolan.org
Fri Apr 10 10:28:44 CEST 2015


vlc-ports/android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Fri Apr 10 10:27:15 2015 +0200| [a4eb835e7d36c35167e61cb7d06048b8a8f6e041] | committer: Geoffrey Métais

Fix shuffle button not shown at play start

> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=a4eb835e7d36c35167e61cb7d06048b8a8f6e041
---

 vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayer.java |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayer.java b/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayer.java
index d922fc6..e6b4233 100644
--- a/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayer.java
+++ b/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayer.java
@@ -361,7 +361,7 @@ public class AudioPlayer extends Fragment implements IAudioPlayer, View.OnClickL
             break;
         }
 
-        mShuffle.setVisibility(mSongsListAdapter.getCount() > 2 ? View.VISIBLE : View.INVISIBLE);
+        mShuffle.setVisibility(mAudioController.getMediaLocations().size() > 2 ? View.VISIBLE : View.INVISIBLE);
         if (mAudioController.hasNext())
             mNext.setVisibility(ImageButton.VISIBLE);
         else



More information about the Android mailing list