Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 3554059f authored by Tiger's avatar Tiger
Browse files

Only draw legacy nav bar background when it is visible

We checked the nav bar visibility before the commit:
ff489163 .
But it was based on mNavigationColorViewState.visible which would be
always false if FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS is not applied. So the
commit removed the visible check, and caused the black bar issue on
dream windows.

This CL adds the visibility check back, uses the requested visibility
instead, which is independent from FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS.

Fix: 273495037
Test: Enable screen saver, and press power putton to show it while in
      split-screen mode. Make sure there is no black bar at the bottom.
Test: Show IME in combinations of
      a. floating mode or non-floating mode
      b. gesture navigation or 3-button navigation
      c. taskbar or navigation bar
      d. light theme or dark theme
      And see if there is anything unexpected
Change-Id: I9b44aa801da7d5be2938406b47b639616f373e43
parent 5530e936
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment