Skip to content

Commit

Permalink
fix: Drawing behind cutout in landscape mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Lastaapps committed Jan 21, 2025
1 parent 1e8319b commit c2f1fe0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2024, Petr Laštovička as Lasta apps, All rights reserved
* Copyright 2025, Petr Laštovička as Lasta apps, All rights reserved
*
* This file is part of Menza.
*
Expand All @@ -23,6 +23,7 @@ import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.BoxWithConstraints
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.safeDrawingPadding
import androidx.compose.material3.DrawerState
import androidx.compose.material3.Scaffold
import androidx.compose.material3.windowsizeclass.WindowWidthSizeClass
Expand Down Expand Up @@ -56,6 +57,8 @@ fun MenzaScaffold(
foldingFeature: FoldingClass = LocalFoldProvider.current,
content: @Composable () -> Unit,
) {
val modifier = modifier.safeDrawingPadding()

when (windowWidth) {
WindowWidthSizeClass.Compact ->
AppLayoutCompact(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2024, Petr Laštovička as Lasta apps, All rights reserved
* Copyright 2025, Petr Laštovička as Lasta apps, All rights reserved
*
* This file is part of Menza.
*
Expand Down Expand Up @@ -39,6 +39,8 @@ class GetAppThemeUC internal constructor(
} else {
AppThemeType.Agata
}

AppThemeType.Agata
}
}
}
Expand Down

0 comments on commit c2f1fe0

Please sign in to comment.