Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
VideoLAN
VLC-Android
Commits
167b53d7
Commit
167b53d7
authored
Jan 05, 2015
by
Geoffrey Métais
Browse files
Shuffle option only for 3+ songs playlists
parent
2ea98b8d
Changes
1
Hide whitespace changes
Inline
Side-by-side
vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayer.java
View file @
167b53d7
...
...
@@ -249,6 +249,7 @@ public class AudioPlayer extends Fragment implements IAudioPlayer {
@Override
public
void
onItemRemoved
(
int
position
)
{
mAudioController
.
remove
(
position
);
update
();
}
});
registerForContextMenu
(
mSongsList
);
...
...
@@ -352,6 +353,8 @@ public class AudioPlayer extends Fragment implements IAudioPlayer {
mRepeat
.
setImageResource
(
Util
.
getResourceFromAttribute
(
act
,
R
.
attr
.
ic_repeat_pressed
));
break
;
}
mShuffle
.
setVisibility
(
mSongsListAdapter
.
getCount
()
>
2
?
View
.
VISIBLE
:
View
.
INVISIBLE
);
if
(
mAudioController
.
hasNext
())
mNext
.
setVisibility
(
ImageButton
.
VISIBLE
);
else
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment