Bug P2
Status Update
Comments
li...@gmail.com <li...@gmail.com> #2
Also, for some reason, in "buttons" mode the auto contrast feature was adding the "dark" scrim, to the "light" navigation bar (the one with dark icons) in the "black" activity. Something is really wrong with the auto-contrast or is it expected? Maybe the order, in which I call the methods, matters?
ak...@google.com <ak...@google.com>
ca...@google.com <ca...@google.com>
li...@gmail.com <li...@gmail.com> #3
Given the recently announced force edge-to-edge mode in Android 15 targeting apps and the details about its implementation, I suppose that this issue may be closed as it is now clear it's not gonna be fixed, cause the described behaviour is by design.
Description
Hi! Not sure if it is related to the library or Android itself, but I experience the odd behaviour with the gesture navigation mode enabled on Android 10.
I have two activities: one with solid black and the second one with solid white background. In both I enable the edge-to-edge design by calling
WindowCompat.setDecorFitsSystemWindows(window, false)
and set the navigation bar color to transparent by calling thewindow.navigationBarColor = Color.TRANSPARENT
.I want to disable the auto contrast of the "gesture navigation panel" and make it either dark or light on my demand. In both activities I tried to call all possible combinations of
WindowCompat.getInsetsController(window, decorView).isAppearanceLightNavigationBars = true/false
andwindow.isNavigationBarContrastEnforced = true/false
, but neither of them disabled the auto contrast: the gesture navigation panel was automatically changing its color based on the activity color (solid white/black) and without respecting the requestedisAppearanceLightNavigationBars
value.On the other hand in "button" mode the enforced contrast was working as expected: scrim was appeared only when
isNavigationBarContrastEnforced
was set totrue
.Is it possible to disable the auto contrast for the
gesture navigation panel
and make it either light or dark?Tested on Samsung Galaxy A52 with Android 11 onboard.