From ea76c296d365b2385f96970123a1180865870260 Mon Sep 17 00:00:00 2001 From: Randy Pfohl Date: Wed, 28 Feb 2024 23:23:14 +0000 Subject: [PATCH] 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 --- res/values/strings.xml | 3 +++ .../settings/gestures/SystemNavigationGestureSettings.java | 1 + 2 files changed, 4 insertions(+) diff --git a/res/values/strings.xml b/res/values/strings.xml index d5fd6214b1e..939bba2043e 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -10479,6 +10479,9 @@ Go back, Home, and switch apps with buttons at the bottom of your screen. + + Start gesture navigation tutorial + system navigation, 2 button navigation, 3 button navigation, gesture navigation, swipe diff --git a/src/com/android/settings/gestures/SystemNavigationGestureSettings.java b/src/com/android/settings/gestures/SystemNavigationGestureSettings.java index c40212b7e01..c38be949760 100644 --- a/src/com/android/settings/gestures/SystemNavigationGestureSettings.java +++ b/src/com/android/settings/gestures/SystemNavigationGestureSettings.java @@ -247,6 +247,7 @@ public class SystemNavigationGestureSettings extends RadioButtonPickerFragment i switch (systemNavKey) { case KEY_SYSTEM_NAV_GESTURAL: if (isGestureTutorialAvailable()){ + videoPref.setContentDescription(R.string.nav_tutorial_button_description); videoPref.setOnPreferenceClickListener(preference -> { startActivity(mLaunchSandboxIntent); return true;