diff --git a/app/src/main/java/com/geode/launcher/ui/theme/Theme.kt b/app/src/main/java/com/geode/launcher/ui/theme/Theme.kt index bf24a92b..590ef989 100644 --- a/app/src/main/java/com/geode/launcher/ui/theme/Theme.kt +++ b/app/src/main/java/com/geode/launcher/ui/theme/Theme.kt @@ -88,10 +88,11 @@ fun GeodeLauncherTheme( statusBarColor = Color.Transparent.toArgb() navigationBarColor = Color.Transparent.toArgb() - } - with (ViewCompat.getWindowInsetsController(view)) { - this?.isAppearanceLightStatusBars = theme == Theme.LIGHT - this?.isAppearanceLightNavigationBars = theme == Theme.LIGHT + + WindowCompat.getInsetsController(this, view).apply { + isAppearanceLightStatusBars = theme == Theme.LIGHT + isAppearanceLightNavigationBars = theme == Theme.LIGHT + } } } }