From a463b0af7b3241b88e6a2d4d06e8fe574b1d770c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C3=ADas=20Hern=C3=A1ndez?= Date: Mon, 29 Jul 2024 19:58:17 +0200 Subject: [PATCH] Fix a11y issues in the schedule editor * Don't read start / end time as separate labels. * Fix content description of day buttons (ToggleButton's stateDescription is textOn/textOff -- which are the same for this particular button, thus it wasn't possible to know whether a day was selected or not). Fixes: 346396147 Test: manual, with Talkback Flag: android.app.modes_ui Change-Id: If73a791cf9bd62cf17e058c81a8051b3e7fd82ea --- res/layout/modes_set_schedule_layout.xml | 6 ++++-- .../ZenModeSetSchedulePreferenceController.java | 15 ++++++++++++--- 2 files changed, 16 insertions(+), 5 deletions(-) diff --git a/res/layout/modes_set_schedule_layout.xml b/res/layout/modes_set_schedule_layout.xml index ebb349e014c..d53e2e42a91 100644 --- a/res/layout/modes_set_schedule_layout.xml +++ b/res/layout/modes_set_schedule_layout.xml @@ -48,7 +48,8 @@ app:layout_constrainedWidth="true" app:layout_constraintHorizontal_bias="0" android:textAppearance="@*android:style/TextAppearance.DeviceDefault.Medium" - android:text="@string/zen_mode_start_time" /> + android:text="@string/zen_mode_start_time" + android:importantForAccessibility="no" /> + android:text="@string/zen_mode_end_time" + android:importantForAccessibility="no" /> {