mirror of
https://github.com/geode-sdk/android-launcher.git
synced 2026-10-21 00:18:18 +00:00
use non deprecated getInsetsController
This commit is contained in:
1 file changed
+5
-4
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user