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
This commit is contained in:
@@ -10479,6 +10479,9 @@
|
|||||||
<!-- Summary text for 3-button navigation [CHAR LIMIT=NONE] -->
|
<!-- 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>
|
<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]-->
|
<!-- 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>
|
<string name="keywords_system_navigation">system navigation, 2 button navigation, 3 button navigation, gesture navigation, swipe</string>
|
||||||
|
|
||||||
|
@@ -247,6 +247,7 @@ public class SystemNavigationGestureSettings extends RadioButtonPickerFragment i
|
|||||||
switch (systemNavKey) {
|
switch (systemNavKey) {
|
||||||
case KEY_SYSTEM_NAV_GESTURAL:
|
case KEY_SYSTEM_NAV_GESTURAL:
|
||||||
if (isGestureTutorialAvailable()){
|
if (isGestureTutorialAvailable()){
|
||||||
|
videoPref.setContentDescription(R.string.nav_tutorial_button_description);
|
||||||
videoPref.setOnPreferenceClickListener(preference -> {
|
videoPref.setOnPreferenceClickListener(preference -> {
|
||||||
startActivity(mLaunchSandboxIntent);
|
startActivity(mLaunchSandboxIntent);
|
||||||
return true;
|
return true;
|
||||||
|
Reference in New Issue
Block a user