[Android] Add missing mediasession flag for seek

Geoffrey Métais git at videolan.org
Thu Jul 12 09:16:48 CEST 2018


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Wed Jul 11 15:09:54 2018 +0200| [f7bf826fa514cd1de391bbc50e8f7d7e791657c4] | committer: Geoffrey Métais

Add missing mediasession flag for seek

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

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

diff --git a/vlc-android/src/org/videolan/vlc/PlaybackService.kt b/vlc-android/src/org/videolan/vlc/PlaybackService.kt
index 426aecad6..aee1e9aab 100644
--- a/vlc-android/src/org/videolan/vlc/PlaybackService.kt
+++ b/vlc-android/src/org/videolan/vlc/PlaybackService.kt
@@ -805,7 +805,7 @@ class PlaybackService : MediaBrowserServiceCompat() {
         if (repeatType != Constants.REPEAT_NONE || hasPrevious() || isSeekable)
             actions = actions or PlaybackStateCompat.ACTION_SKIP_TO_PREVIOUS
         if (isSeekable)
-            actions = actions or (PlaybackStateCompat.ACTION_FAST_FORWARD or PlaybackStateCompat.ACTION_REWIND)
+            actions = actions or PlaybackStateCompat.ACTION_FAST_FORWARD or PlaybackStateCompat.ACTION_REWIND or PlaybackStateCompat.ACTION_SEEK_TO
         actions = actions or PlaybackStateCompat.ACTION_SKIP_TO_QUEUE_ITEM
         pscb.setActions(actions)
         val repeatResId = if (repeatType == Constants.REPEAT_ALL) R.drawable.ic_auto_repeat_pressed else if (repeatType == Constants.REPEAT_ONE) R.drawable.ic_auto_repeat_one_pressed else R.drawable.ic_auto_repeat_normal



More information about the Android mailing list