[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
Mon Oct 19 08:50:41 CEST 2020
vlc-android | branch: master | Robert Stone <rhstone at gmail.com> | Mon Oct 12 00:07:47 2020 -0700| [3ecb4d46aa767980bb32fa31d80fc941294f6f72] | 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.
> https://code.videolan.org/videolan/vlc-android/commit/3ecb4d46aa767980bb32fa31d80fc941294f6f72
---
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