-
Notifications
You must be signed in to change notification settings - Fork 161
Implemented XR NavigationRail #614
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -92,24 +92,17 @@ private fun KaigiNavigationScaffold( | |
| ) { | ||
| Row(modifier = modifier.fillMaxSize(), verticalAlignment = Alignment.CenterVertically) { | ||
| AnimatedVisibility(currentTab != null && navigationBarType == NavigationBarType.NavigationRail) { | ||
| /** | ||
| * TODO: Orbiter support for NavigationRail in XR. | ||
| * Also, as of September 9, 2025, there is a problem where Orbiter cannot be displayed on the XR emulator. | ||
| */ | ||
| GlassLikeNavigationRailBar( | ||
| currentTab = currentTab ?: MainScreenTab.Timetable, | ||
| hazeState = hazeState, | ||
| onTabSelected = onTabSelected, | ||
| animatedSelectedTabIndex = animatedSelectedTabIndex, | ||
| animatedColor = animatedColor, | ||
| modifier = Modifier | ||
| .padding(start = 16.dp, end = 8.dp) | ||
| .windowInsetsPadding( | ||
| WindowInsets.safeDrawing.only( | ||
| WindowInsetsSides.Vertical + WindowInsetsSides.Start, | ||
| ), | ||
| ), | ||
| ) | ||
| with(LocalNavigationRailOverride.current) { | ||
| NavigationRailOverrideScope( | ||
| currentTab = currentTab ?: MainScreenTab.Timetable, | ||
| hazeState = hazeState, | ||
| onTabSelected = onTabSelected, | ||
| animatedSelectedTabIndex = animatedSelectedTabIndex, | ||
| animatedColor = animatedColor, | ||
| modifier = Modifier, | ||
| ) | ||
| .NavigationRail() | ||
|
Comment on lines
+96
to
+104
|
||
| } | ||
| } | ||
| Scaffold( | ||
| bottomBar = { | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This comment acknowledges a technical debt but doesn't provide enough context. Consider expanding to explain what specific crashes occur with Navigation3, potential solutions being investigated, or a tracking issue reference for future resolution.