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.
2 parents b0007bb + 488b97a commit 8a15a61Copy full SHA for 8a15a61
app/src/main/kotlin/com/google/samples/apps/nowinandroid/ui/NiaApp.kt
@@ -219,13 +219,14 @@ internal fun NiaApp(
219
}
220
221
Box(
222
- modifier = if (shouldShowTopAppBar) {
223
- Modifier.consumeWindowInsets(
224
- WindowInsets.safeDrawing.only(WindowInsetsSides.Top),
225
- )
226
- } else {
227
- Modifier
228
- },
+ // Workaround for https://issuetracker.google.com/338478720
+ modifier = Modifier.consumeWindowInsets(
+ if (shouldShowTopAppBar) {
+ WindowInsets.safeDrawing.only(WindowInsetsSides.Top)
+ } else {
+ WindowInsets(0, 0, 0, 0)
+ },
229
+ ),
230
) {
231
NiaNavHost(
232
appState = appState,
0 commit comments