[System UI Controller] Deprecation and Activity.enableEdgeToEdge
leinardi opened this issue · 9 comments
I understand that, to properly deal with edge-to-edge and status/notification bar color changes we can now use the Activity.enableEdgeToEdge
method, as explained here but, what is the advised migration strategy for other features that System UI Controller is providing, like SystemUiController.systemBarsBehavior
or SystemUiController.isStatusBarVisible
?
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.
comment or this will be closed in 5 days
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.
comment or this will be closed in 5 days
I'm having this issue too. Activity's edge-to-edge doesn't seem to have an equivalent to isNavigationBarContrastEnforced = false
Workaround for isNavigationBarContrastEnforced: https://issuetracker.google.com/issues/324115590#comment3
For the window flags that aren't controlled by the opinionated enableEdgeToEdge
, you can read and write them directly using the relevant Window
, or via the WindowInsetsControllerCompat
for that Window
.
For isStatusBarVisible
, you should be able to use WindowInsets.areStatusBarsVisible