[Android] Accessibility: add a content description for close icon

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 08:32:55 2022 +0200| [28e463584e901618069a42d839cc554600f3568f] | committer: Nicolas Pomepuy

Accessibility: add a content description for close icon

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

 application/vlc-android/res/layout/audio_player_tips.xml   | 1 +
 application/vlc-android/res/layout/audio_playlist_tips.xml | 1 +
 application/vlc-android/res/layout/player_tips.xml         | 3 +--
 3 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/application/vlc-android/res/layout/audio_player_tips.xml b/application/vlc-android/res/layout/audio_player_tips.xml
index e946a58ba..c3a85f42b 100644
--- a/application/vlc-android/res/layout/audio_player_tips.xml
+++ b/application/vlc-android/res/layout/audio_player_tips.xml
@@ -32,6 +32,7 @@
             android:background="?attr/actionBarItemBackground"
             android:nextFocusRight="@+id/add_bookmark"
             android:onClick="onClickDismissTips"
+            android:contentDescription="@string/close"
             android:padding="8dp"
             app:layout_constraintEnd_toStartOf="@+id/title"
             app:layout_constraintHorizontal_bias="0.5"
diff --git a/application/vlc-android/res/layout/audio_playlist_tips.xml b/application/vlc-android/res/layout/audio_playlist_tips.xml
index 83d8efd20..c7da122f2 100644
--- a/application/vlc-android/res/layout/audio_playlist_tips.xml
+++ b/application/vlc-android/res/layout/audio_playlist_tips.xml
@@ -46,6 +46,7 @@
             android:background="?attr/actionBarItemBackground"
             android:nextFocusRight="@+id/add_bookmark"
             android:onClick="onClickDismissPlaylistTips"
+            android:contentDescription="@string/close"
             android:padding="8dp"
             app:layout_constraintEnd_toStartOf="@+id/title"
             app:layout_constraintHorizontal_bias="0.5"
diff --git a/application/vlc-android/res/layout/player_tips.xml b/application/vlc-android/res/layout/player_tips.xml
index 8873d4bbf..6500e709d 100644
--- a/application/vlc-android/res/layout/player_tips.xml
+++ b/application/vlc-android/res/layout/player_tips.xml
@@ -15,8 +15,7 @@
             android:layout_marginStart="16dp"
             android:layout_marginTop="16dp"
             android:background="?attr/actionBarItemBackground"
-
-
+            android:contentDescription="@string/close"
             android:nextFocusRight="@+id/add_bookmark"
             android:onClick="onClickDismissTips"
             android:padding="8dp"



More information about the Android mailing list