Fix state loss with workaround

Change-Id: I96025bd8b2f4f59019df95d1391b832249e7dc91
pull/1419/head
Alex Vanyo 7 months ago
parent 3dd424067f
commit a324fcc8d3

@ -201,13 +201,13 @@ internal fun NiaApp(
}
Box(
modifier = if (shouldShowTopAppBar) {
Modifier.consumeWindowInsets(
WindowInsets.safeDrawing.only(WindowInsetsSides.Top),
)
} else {
Modifier
},
modifier = Modifier.consumeWindowInsets(
if (shouldShowTopAppBar) {
WindowInsets.safeDrawing.only(WindowInsetsSides.Top)
} else {
WindowInsets(0, 0, 0, 0)
},
),
) {
NiaNavHost(
appState = appState,

Loading…
Cancel
Save