Skip to content

Commit

Permalink
use non deprecated getInsetsController
Browse files Browse the repository at this point in the history
  • Loading branch information
qimiko committed Jan 18, 2024
1 parent ac14f52 commit 53d19aa
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions app/src/main/java/com/geode/launcher/ui/theme/Theme.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
}
}
Expand Down

0 comments on commit 53d19aa

Please sign in to comment.