Skip to content

Commit 4509e2f

Browse files
authored
Merge pull request #9225 from marcRDZ/fix-9165_navigation-bar-color
Set opaque navigation bar background color
2 parents b752a00 + 84f665f commit 4509e2f

File tree

1 file changed

+1
-2
lines changed
  • core/ui/compose/theme2/common/src/main/kotlin/app/k9mail/core/ui/compose/theme2

1 file changed

+1
-2
lines changed

core/ui/compose/theme2/common/src/main/kotlin/app/k9mail/core/ui/compose/theme2/SystemBar.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package app.k9mail.core.ui.compose.theme2
22

33
import android.app.Activity
4-
import android.graphics.Color
54
import androidx.compose.runtime.Composable
65
import androidx.compose.runtime.SideEffect
76
import androidx.compose.ui.graphics.toArgb
@@ -18,7 +17,7 @@ fun SystemBar(
1817
SideEffect {
1918
val window = (view.context as Activity).window
2019
window.statusBarColor = colorScheme.surfaceContainer.toArgb()
21-
window.navigationBarColor = Color.TRANSPARENT
20+
window.navigationBarColor = colorScheme.surfaceContainer.toArgb()
2221
WindowCompat.getInsetsController(window, view).isAppearanceLightStatusBars = !darkTheme
2322
}
2423
}

0 commit comments

Comments
 (0)