Skip to content

Commit 551212a

Browse files
committed
Add snippet for ticket_421450361
1 parent 7f4c676 commit 551212a

File tree

1 file changed

+6
-4
lines changed
  • xr/src/main/java/com/example/xr/compose

1 file changed

+6
-4
lines changed

xr/src/main/java/com/example/xr/compose/Views.kt

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,12 @@ private class ActivityWithSubspaceContent : ComponentActivity() {
4444
override fun onCreate(savedInstanceState: Bundle?) {
4545
super.onCreate(savedInstanceState)
4646
// [START androidxr_compose_ActivityWithSubspaceContent]
47-
setSubspaceContent {
48-
SpatialPanel(
49-
modifier = SubspaceModifier.height(500.dp).width(500.dp).depth(25.dp)
50-
) { MyCustomView(this) }
47+
setContent {
48+
Subspace {
49+
SpatialPanel(
50+
modifier = SubspaceModifier.height(500.dp).width(500.dp).depth(25.dp)
51+
) { MyCustomView(this) }
52+
}
5153
}
5254
// [END androidxr_compose_ActivityWithSubspaceContent]
5355
}

0 commit comments

Comments
 (0)