Setting content description when illustration is clickable
Test: Built and tested with other cls in topic and verified talkback works properly.
Flag: None
Bug: 319747547
Change-Id: I37cbcc9bc4c830c73913cdad0734a874bd0eac7c
diff --git a/res/values/strings.xml b/res/values/strings.xml
index d5fd621..939bba2 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -10479,6 +10479,9 @@
<!-- Summary text for 3-button navigation [CHAR LIMIT=NONE] -->
<string name="legacy_navigation_summary">Go back, Home, and switch apps with buttons at the bottom of your screen.</string>
+ <!-- Accessibility string for gesture nav tutorial button [CHAR_LIMIT=NONE] -->
+ <string name="nav_tutorial_button_description">Start gesture navigation tutorial</string>
+
<!-- Search keywords for System Navigation settings. [CHAR_LIMIT=NONE]-->
<string name="keywords_system_navigation">system navigation, 2 button navigation, 3 button navigation, gesture navigation, swipe</string>
diff --git a/src/com/android/settings/gestures/SystemNavigationGestureSettings.java b/src/com/android/settings/gestures/SystemNavigationGestureSettings.java
index c40212b..c38be94 100644
--- a/src/com/android/settings/gestures/SystemNavigationGestureSettings.java
+++ b/src/com/android/settings/gestures/SystemNavigationGestureSettings.java
@@ -247,6 +247,7 @@
switch (systemNavKey) {
case KEY_SYSTEM_NAV_GESTURAL:
if (isGestureTutorialAvailable()){
+ videoPref.setContentDescription(R.string.nav_tutorial_button_description);
videoPref.setOnPreferenceClickListener(preference -> {
startActivity(mLaunchSandboxIntent);
return true;