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 0e91686 commit 5af4f75Copy full SHA for 5af4f75
1 file changed
android/app/src/main/java/com/httpsms/ui/theme/Theme.kt
@@ -62,8 +62,13 @@ fun HttpSmsTheme(
62
if (!view.isInEditMode) {
63
SideEffect {
64
val window = (view.context as Activity).window
65
- window.statusBarColor = colorScheme.primary.toArgb()
66
- WindowCompat.getInsetsController(window, view).isAppearanceLightStatusBars = !darkTheme
+ if (Build.VERSION.SDK_INT < Build.VERSION_CODES.S) {
+ window.statusBarColor = if (darkTheme) Color.Black.toArgb() else LogoGreen.toArgb()
67
+ WindowCompat.getInsetsController(window, view).isAppearanceLightStatusBars = false
68
+ } else {
69
+ window.statusBarColor = colorScheme.primary.toArgb()
70
+ WindowCompat.getInsetsController(window, view).isAppearanceLightStatusBars = !darkTheme
71
+ }
72
}
73
74
0 commit comments