Skip to content

Commit 2dd3282

Browse files
committedFeb 17, 2021
[Rally] Add comment explaining use of mergeDescendants
1 parent 68bfcfe commit 2dd3282

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

Diff for: ‎Rally/app/src/main/java/com/example/compose/rally/ui/overview/OverviewScreen.kt

+4
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,10 @@ private fun AlertItem(message: String) {
132132
Row(
133133
modifier = Modifier
134134
.padding(RallyDefaultPadding)
135+
// Regard the whole row as one semantics node. This way each row will receive focus as
136+
// a whole and the focus bounds will be around the whole row content. The semantics
137+
// properties of the descendants will be merged. If we'd use clearAndSetSemantics instead,
138+
// we'd have to define the semantics properties explicitly.
135139
.semantics(mergeDescendants = true) {},
136140
horizontalArrangement = Arrangement.SpaceBetween
137141
) {

0 commit comments

Comments
 (0)
Please sign in to comment.