diff options
author | 2024-09-06 18:29:02 +0000 | |
---|---|---|
committer | 2024-09-06 18:29:02 +0000 | |
commit | 0f50abb71bd56356b45a4fd3c96813dda39fa53e (patch) | |
tree | b34fd9b34828321d6390074d190a1d64dd59ae27 | |
parent | aa42855310bde123f46f6b5a62f6ea1fce0d5fb8 (diff) | |
parent | c1361a46d076fcc78a62a92ccc6bf5e019076ac7 (diff) |
Merge "Set an explicit pane title for communal hub." into main
-rw-r--r-- | packages/SystemUI/compose/features/src/com/android/systemui/communal/ui/compose/CommunalHub.kt | 8 |
1 files changed, 7 insertions, 1 deletions
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 bcbf933d9370..c63b29dd9051 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 @@ -137,6 +137,7 @@ import androidx.compose.ui.semantics.clearAndSetSemantics import androidx.compose.ui.semantics.contentDescription import androidx.compose.ui.semantics.customActions import androidx.compose.ui.semantics.onClick +import androidx.compose.ui.semantics.paneTitle import androidx.compose.ui.semantics.semantics import androidx.compose.ui.semantics.testTagsAsResourceId import androidx.compose.ui.text.style.TextAlign @@ -241,10 +242,15 @@ fun CommunalHub( } } + val paneTitle = stringResource(R.string.accessibility_content_description_for_communal_hub) + Box( modifier = modifier - .semantics { testTagsAsResourceId = true } + .semantics { + testTagsAsResourceId = true + this.paneTitle = paneTitle + } .testTag(COMMUNAL_HUB_TEST_TAG) .fillMaxSize() // Observe taps for selecting items |