[Android] Enable 'previous' button with only 1 media playing

Geoffrey Métais git at videolan.org
Thu Mar 30 14:25:58 CEST 2017


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu Mar 30 10:46:58 2017 +0200| [6e39ad5165edcbb05ad41b243a2b5d010d7b9083] | committer: Geoffrey Métais

Enable 'previous' button with only 1 media playing

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

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

diff --git a/vlc-android/src/org/videolan/vlc/PlaybackService.java b/vlc-android/src/org/videolan/vlc/PlaybackService.java
index 9ad1e17..d588dfa 100644
--- a/vlc-android/src/org/videolan/vlc/PlaybackService.java
+++ b/vlc-android/src/org/videolan/vlc/PlaybackService.java
@@ -1301,7 +1301,7 @@ public class PlaybackService extends MediaBrowserServiceCompat implements IVLCVo
         }
         if (hasNext())
             actions |= PlaybackStateCompat.ACTION_SKIP_TO_NEXT;
-        if (hasPrevious())
+        if (hasPrevious() || isSeekable())
             actions |= PlaybackStateCompat.ACTION_SKIP_TO_PREVIOUS;
         if (isSeekable())
             actions |= PlaybackStateCompat.ACTION_FAST_FORWARD | PlaybackStateCompat.ACTION_REWIND;



More information about the Android mailing list