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