[Android] Allow 'previous' action for first song in playlist
Geoffrey Métais
git at videolan.org
Wed Jun 15 13:59:18 CEST 2016
vlc-android | branch: 2.0.x | Geoffrey Métais <geoffrey.metais at gmail.com> | Wed Jun 15 11:31:23 2016 +0200| [0de29688d10cce51b1d29cca38af7f442be2d316] | committer: Geoffrey Métais
Allow 'previous' action for first song in playlist
(cherry picked from commit c515f3a0214371beeff88d819f7e513a960bbf97)
> https://code.videolan.org/videolan/vlc-android/commit/0de29688d10cce51b1d29cca38af7f442be2d316
---
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 695de7c..52126ab 100644
--- a/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayer.java
+++ b/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayer.java
@@ -505,7 +505,7 @@ public class AudioPlayer extends PlaybackServiceFragment implements PlaybackServ
public void onPreviousClick(View view) {
if (mService == null)
return;
- if (mService.hasPrevious())
+ if (mService.hasPrevious() || mService.isSeekable())
mService.previous();
else
Snackbar.make(getView(), R.string.firstsong, Snackbar.LENGTH_SHORT).show();
More information about the Android
mailing list