[Android] Enable previous and next controls in repeat mode

Geoffrey Métais git at videolan.org
Mon May 29 09:07:16 CEST 2017


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Fri May 26 17:30:15 2017 +0200| [d61dd925048f785721b16bc5f701296b2c9471d9] | committer: Geoffrey Métais

Enable previous and next controls in repeat mode

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

 vlc-android/src/org/videolan/vlc/PlaybackService.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/vlc-android/src/org/videolan/vlc/PlaybackService.java b/vlc-android/src/org/videolan/vlc/PlaybackService.java
index f1754c7f0..c0560ed11 100644
--- a/vlc-android/src/org/videolan/vlc/PlaybackService.java
+++ b/vlc-android/src/org/videolan/vlc/PlaybackService.java
@@ -1334,9 +1334,9 @@ public class PlaybackService extends MediaBrowserServiceCompat implements IVLCVo
             actions |= PlaybackStateCompat.ACTION_PLAY;
             pscb.setState(PlaybackStateCompat.STATE_STOPPED, getTime(), getRate());
         }
-        if (hasNext())
+        if (mRepeating != REPEAT_NONE || hasNext())
             actions |= PlaybackStateCompat.ACTION_SKIP_TO_NEXT;
-        if (hasPrevious() || isSeekable())
+        if (mRepeating != REPEAT_NONE || 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