From 15328f3e7e6fd3f168ca7ce25aea385b37f55863 Mon Sep 17 00:00:00 2001 From: Anton Potapov Date: Thu, 4 Apr 2024 15:15:04 +0100 Subject: Move VolumePanelPopup title announcement to paneTitle Flag: aconfig new_volume_panel TRUNKFOOD Test: manual on the phone with voice over and a headset. Open spatial audio and noice control popups with voice over turned on Fixes: 331306556 Fixes: 331338969 Change-Id: I15d2a4e236638d84b534590c1df2aff593f7701f --- .../volume/panel/component/popup/ui/composable/VolumePanelPopup.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/SystemUI/compose/features/src/com/android/systemui/volume/panel/component/popup/ui/composable/VolumePanelPopup.kt b/packages/SystemUI/compose/features/src/com/android/systemui/volume/panel/component/popup/ui/composable/VolumePanelPopup.kt index 26086d1a9d0a..9f9bc623a6b3 100644 --- a/packages/SystemUI/compose/features/src/com/android/systemui/volume/panel/component/popup/ui/composable/VolumePanelPopup.kt +++ b/packages/SystemUI/compose/features/src/com/android/systemui/volume/panel/component/popup/ui/composable/VolumePanelPopup.kt @@ -33,6 +33,8 @@ import androidx.compose.ui.Alignment import androidx.compose.ui.Modifier import androidx.compose.ui.res.painterResource import androidx.compose.ui.res.stringResource +import androidx.compose.ui.semantics.paneTitle +import androidx.compose.ui.semantics.semantics import androidx.compose.ui.unit.dp import com.android.systemui.animation.DialogTransitionAnimator import com.android.systemui.animation.Expandable @@ -82,7 +84,8 @@ constructor( title: @Composable (SystemUIDialog) -> Unit, content: @Composable (SystemUIDialog) -> Unit, ) { - Box(Modifier.fillMaxWidth()) { + val paneTitle = stringResource(R.string.accessibility_volume_settings) + Box(Modifier.fillMaxWidth().semantics(properties = { this.paneTitle = paneTitle })) { Column( modifier = Modifier.fillMaxWidth().padding(vertical = 20.dp), verticalArrangement = Arrangement.spacedBy(20.dp), -- cgit v1.2.3-59-g8ed1b