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