[Android] Allow 'previous' action for first song in playlist

Geoffrey Métais git at videolan.org
Wed Jun 15 11:33:22 CEST 2016


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Wed Jun 15 11:31:23 2016 +0200| [c515f3a0214371beeff88d819f7e513a960bbf97] | committer: Geoffrey Métais

Allow 'previous' action for first song in playlist

> https://code.videolan.org/videolan/vlc-android/commit/c515f3a0214371beeff88d819f7e513a960bbf97
---

 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