summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Pat Manning <patmanning@google.com> 2024-11-07 16:45:48 +0000
committer Pat Manning <patmanning@google.com> 2024-11-07 16:45:48 +0000
commit77ecd8de71a93cbb9a04564da90654ec3e3db900 (patch)
treeae105c5257b4e2e62a6cbe21b295e93f1ea372c1
parenteadefe1e81b91d5c6ec3ba6bf1029cdc5b68ab7d (diff)
Hide DragHandle from A11Y focus for bottom sheets.
Fix: 375132312 Test: Manual. Using TalkBack Flag: EXEMPT Bugfix. Change-Id: I24d3abeb9d71827bdb066627a8466a0efa99f41c
-rw-r--r--packages/SystemUI/compose/features/src/com/android/systemui/statusbar/phone/SystemUIDialogFactoryExt.kt6
1 files changed, 5 insertions, 1 deletions
diff --git a/packages/SystemUI/compose/features/src/com/android/systemui/statusbar/phone/SystemUIDialogFactoryExt.kt b/packages/SystemUI/compose/features/src/com/android/systemui/statusbar/phone/SystemUIDialogFactoryExt.kt
index d58e1bfbda83..56ea1cc7c28c 100644
--- a/packages/SystemUI/compose/features/src/com/android/systemui/statusbar/phone/SystemUIDialogFactoryExt.kt
+++ b/packages/SystemUI/compose/features/src/com/android/systemui/statusbar/phone/SystemUIDialogFactoryExt.kt
@@ -59,6 +59,7 @@ import androidx.compose.ui.platform.LocalLayoutDirection
import androidx.compose.ui.res.dimensionResource
import androidx.compose.ui.res.stringResource
import androidx.compose.ui.semantics.contentDescription
+import androidx.compose.ui.semantics.hideFromAccessibility
import androidx.compose.ui.semantics.semantics
import androidx.compose.ui.unit.Dp
import androidx.compose.ui.unit.IntOffset
@@ -286,7 +287,10 @@ private fun DragHandle(dialog: Dialog) {
Surface(
modifier =
Modifier.padding(top = 16.dp, bottom = 6.dp)
- .semantics { contentDescription = dragHandleContentDescription }
+ .semantics {
+ contentDescription = dragHandleContentDescription
+ hideFromAccessibility()
+ }
.clickable { dialog.dismiss() },
color = MaterialTheme.colorScheme.outlineVariant,
shape = MaterialTheme.shapes.extraLarge,