[Android] Set the active queue item. This positions the display of the queue to the current track and shows an icon to the user.

Robert Stone git at videolan.org
Wed Oct 21 09:02:41 CEST 2020


vlc-android | branch: 3.3.x | Robert Stone <rhstone at gmail.com> | Mon Oct 12 00:07:47 2020 -0700| [db4525bb7c097b00a4f474eeb6dabc06815b2f22] | committer: Nicolas Pomepuy

Set the active queue item. This positions the display of the queue to the current track and shows an icon to the user.

(cherry picked from commit 3ecb4d46aa767980bb32fa31d80fc941294f6f72)

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

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

diff --git a/application/vlc-android/src/org/videolan/vlc/PlaybackService.kt b/application/vlc-android/src/org/videolan/vlc/PlaybackService.kt
index 9ad19de37d..500bcc4106 100644
--- a/application/vlc-android/src/org/videolan/vlc/PlaybackService.kt
+++ b/application/vlc-android/src/org/videolan/vlc/PlaybackService.kt
@@ -889,6 +889,7 @@ class PlaybackService : MediaBrowserServiceCompat(), LifecycleOwner {
             }
         }
         pscb.setState(state, time, playlistManager.player.getRate())
+        pscb.setActiveQueueItemId(playlistManager.currentIndex.toLong())
         val repeatType = playlistManager.repeating
         if (repeatType != PlaybackStateCompat.REPEAT_MODE_NONE || hasNext())
             actions = actions or PlaybackStateCompat.ACTION_SKIP_TO_NEXT



More information about the Android mailing list