[Android] Accessibility: improve video player play queue
Nicolas Pomepuy
git at videolan.org
Fri Jun 3 11:30:22 UTC 2022
vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Thu Jun 2 07:55:06 2022 +0200| [5e4abf0149757a5cb9cf5843176736c8f3e629c6] | committer: Nicolas Pomepuy
Accessibility: improve video player play queue
> https://code.videolan.org/videolan/vlc-android/commit/5e4abf0149757a5cb9cf5843176736c8f3e629c6
---
application/vlc-android/res/layout/player.xml | 1 +
.../src/org/videolan/vlc/gui/video/VideoPlayerOverlayDelegate.kt | 1 +
2 files changed, 2 insertions(+)
diff --git a/application/vlc-android/res/layout/player.xml b/application/vlc-android/res/layout/player.xml
index 00a9da399..a7934696d 100644
--- a/application/vlc-android/res/layout/player.xml
+++ b/application/vlc-android/res/layout/player.xml
@@ -158,6 +158,7 @@
app:srcCompat="@drawable/ic_close_small"
android:background="?attr/selectableItemBackgroundBorderless"
android:id="@+id/close_button"
+ android:contentDescription="@string/close"
android:padding="8dp"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
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 05871a3da..b8fde2ba9 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
@@ -793,6 +793,7 @@ class VideoPlayerOverlayDelegate (private val player: VideoPlayerActivity) {
playlistContainer.setVisible()
playlist.adapter = playlistAdapter
player.update()
+ if (player.isTalkbackIsEnabled()) playlistSearchText.editText?.sendAccessibilityEvent(AccessibilityEvent.TYPE_VIEW_FOCUSED)
}
fun showControls(show: Boolean) {
More information about the Android
mailing list