use non deprecated getInsetsController

This commit is contained in:
qimiko committed 2024-01-18 00:25:32 -07:00
1 parent ac14f52fb8
commit 53d19aaf16
1 file changed
+4 -3
@@ -88,10 +88,11 @@ fun GeodeLauncherTheme(
statusBarColor = Color.Transparent.toArgb() statusBarColor = Color.Transparent.toArgb()
navigationBarColor = Color.Transparent.toArgb() navigationBarColor = Color.Transparent.toArgb()
WindowCompat.getInsetsController(this, view).apply {
isAppearanceLightStatusBars = theme == Theme.LIGHT
isAppearanceLightNavigationBars = theme == Theme.LIGHT
} }
with (ViewCompat.getWindowInsetsController(view)) {
this?.isAppearanceLightStatusBars = theme == Theme.LIGHT
this?.isAppearanceLightNavigationBars = theme == Theme.LIGHT
} }
} }
} }