diff --git a/app/src/main/java/com/github/libretube/ui/sheets/PlayingQueueSheet.kt b/app/src/main/java/com/github/libretube/ui/sheets/PlayingQueueSheet.kt index 87ede63e1f..97474a0253 100644 --- a/app/src/main/java/com/github/libretube/ui/sheets/PlayingQueueSheet.kt +++ b/app/src/main/java/com/github/libretube/ui/sheets/PlayingQueueSheet.kt @@ -33,6 +33,10 @@ class PlayingQueueSheet : ExpandedBottomSheet() { val adapter = PlayingQueueAdapter() binding.optionsRecycler.adapter = adapter + // scroll to the currently playing video in the queue + val currentPlayingIndex = PlayingQueue.currentIndex() + if (currentPlayingIndex != -1) binding.optionsRecycler.scrollToPosition(currentPlayingIndex) + binding.shuffle.setOnClickListener { val streams = PlayingQueue.getStreams().toMutableList() val currentIndex = PlayingQueue.currentIndex()