We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3dd4240 commit a324fccCopy full SHA for a324fcc
app/src/main/kotlin/com/google/samples/apps/nowinandroid/ui/NiaApp.kt
@@ -201,13 +201,13 @@ internal fun NiaApp(
201
}
202
203
Box(
204
- modifier = if (shouldShowTopAppBar) {
205
- Modifier.consumeWindowInsets(
206
- WindowInsets.safeDrawing.only(WindowInsetsSides.Top),
207
- )
208
- } else {
209
- Modifier
210
- },
+ modifier = Modifier.consumeWindowInsets(
+ if (shouldShowTopAppBar) {
+ WindowInsets.safeDrawing.only(WindowInsetsSides.Top)
+ } else {
+ WindowInsets(0, 0, 0, 0)
+ },
+ ),
211
) {
212
NiaNavHost(
213
appState = appState,
0 commit comments