Enter glanceable hub edit mode using talkback
Test: device tested
Fixes: 333564549
Flag: ACONFIG com.android.systemui.communal_hub TEAMFOOD
Change-Id: I61b6352b0d49a1b00415313ba850e98677733135
diff --git a/packages/SystemUI/compose/features/src/com/android/systemui/communal/ui/compose/CommunalHub.kt b/packages/SystemUI/compose/features/src/com/android/systemui/communal/ui/compose/CommunalHub.kt
index 5d87a03..e02b996 100644
--- a/packages/SystemUI/compose/features/src/com/android/systemui/communal/ui/compose/CommunalHub.kt
+++ b/packages/SystemUI/compose/features/src/com/android/systemui/communal/ui/compose/CommunalHub.kt
@@ -1060,6 +1060,12 @@
) {
viewModel.changeScene(CommunalScenes.Blank)
true
+ },
+ CustomAccessibilityAction(
+ context.getString(R.string.accessibility_action_label_edit_widgets)
+ ) {
+ viewModel.onOpenWidgetEditor()
+ true
}
)
}
diff --git a/packages/SystemUI/res/values/strings.xml b/packages/SystemUI/res/values/strings.xml
index 4690f02..2ef9abf 100644
--- a/packages/SystemUI/res/values/strings.xml
+++ b/packages/SystemUI/res/values/strings.xml
@@ -1176,6 +1176,8 @@
<string name="work_mode_turn_on">Unpause</string>
<!-- Label for accessibility action that navigates to lock screen. [CHAR LIMIT=NONE] -->
<string name="accessibility_action_label_close_communal_hub">Close widgets on lock screen</string>
+ <!-- Label for accessibility action that navigates to edit mode. [CHAR LIMIT=NONE] -->
+ <string name="accessibility_action_label_edit_widgets">Customize widgets</string>
<!-- Accessibility content description for communal hub. [CHAR LIMIT=NONE] -->
<string name="accessibility_content_description_for_communal_hub">Widgets on lock screen</string>