File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
app/src/main/kotlin/day/vitayuzu/neodb/ui/component Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,8 @@ import androidx.compose.foundation.layout.fillMaxWidth
66import androidx.compose.runtime.Composable
77import androidx.compose.ui.Modifier
88import androidx.navigation3.ui.LocalNavAnimatedContentScope
9+ import day.vitayuzu.neodb.util.AppNavigator
10+ import day.vitayuzu.neodb.util.LocalNavigator
911import day.vitayuzu.neodb.util.sharedElementTransition
1012
1113/* *
@@ -25,7 +27,9 @@ import day.vitayuzu.neodb.util.sharedElementTransition
2527@Composable
2628fun SharedBottomBar (modifier : Modifier = Modifier , movableContent : @Composable () -> Unit ) {
2729 Box (modifier.sharedElementTransition(SharedBottomBarKey )) {
28- if (LocalNavAnimatedContentScope .current.transition.targetState != EnterExitState .Visible ) {
30+ if (LocalNavAnimatedContentScope .current.transition.targetState != EnterExitState .Visible &&
31+ LocalNavigator .current.current is AppNavigator .TopLevelDestination
32+ ) {
2933 Box (Modifier .fillMaxWidth()) // placeholder
3034 } else {
3135 movableContent()
You can’t perform that action at this time.
0 commit comments