Fix state loss with workaround

Change-Id: I96025bd8b2f4f59019df95d1391b832249e7dc91
pull/1837/head
Alex Vanyo 1 year ago
parent 27f7b6db79
commit c046c0cf5c

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

Loading…
Cancel
Save