[Android] Fix the playlist adapter not scrolled when reopening a second time
Nicolas Pomepuy
git at videolan.org
Mon Sep 5 10:58:56 UTC 2022
vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Mon Sep 5 11:34:39 2022 +0200| [0a16377d7ba3842dd7900978a045b01971c5c2dc] | committer: Nicolas Pomepuy
Fix the playlist adapter not scrolled when reopening a second time
Fixes #2676
> https://code.videolan.org/videolan/vlc-android/commit/0a16377d7ba3842dd7900978a045b01971c5c2dc
---
.../src/org/videolan/vlc/gui/video/VideoPlayerOverlayDelegate.kt | 1 +
1 file changed, 1 insertion(+)
diff --git a/application/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerOverlayDelegate.kt b/application/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerOverlayDelegate.kt
index 275da3de2..ea10ba804 100644
--- a/application/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerOverlayDelegate.kt
+++ b/application/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerOverlayDelegate.kt
@@ -804,6 +804,7 @@ class VideoPlayerOverlayDelegate (private val player: VideoPlayerActivity) {
hideOverlay(true)
playlistContainer.setVisible()
playlist.adapter = playlistAdapter
+ player.onSelectionSet(playlistAdapter.currentIndex)
player.update()
if (player.isTalkbackIsEnabled()) playlistSearchText.editText?.sendAccessibilityEvent(AccessibilityEvent.TYPE_VIEW_FOCUSED)
}
More information about the Android
mailing list