diff options
| author | 2024-04-05 09:09:31 +0000 | |
|---|---|---|
| committer | 2024-04-05 09:09:31 +0000 | |
| commit | b96bbe2a08ff8a5890bc4af833846cf4e373868c (patch) | |
| tree | 44c6d17571009caa706dff5dbe675422fe2314e4 | |
| parent | 258e39570974265c9ae9129b868d97aa76b3a0fa (diff) | |
| parent | 15328f3e7e6fd3f168ca7ce25aea385b37f55863 (diff) | |
Merge "Move VolumePanelPopup title announcement to paneTitle" into main
| -rw-r--r-- | packages/SystemUI/compose/features/src/com/android/systemui/volume/panel/component/popup/ui/composable/VolumePanelPopup.kt | 5 |
1 files changed, 4 insertions, 1 deletions
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), |