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

Skip to content
Commit 9bdeda62 authored by Tiger's avatar Tiger Committed by Android Build Coastguard Worker
Browse files

Reset status bar color when setting mEdgeToEdgeEnforced

mEdgeToEdgeEnforced is set during installDecor. If setStatusBarcolor is
called before mEdgeToEdgeEnforced is set, the color might be leaked.
This CL resets mStatusBarColor and mNavigationBarDividerColor to make
sure the edge-to-edge enforced as expected.

Bug: 353391346
Bug: 309578419
Flag: com.android.window.flags.enforce_edge_to_edge
Test: Open an app, targeting SDK35+, which calls setStatusBarColor
      before accessing DecorView. See if status bar color will stay
      transparent.
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:c3203dde0d2335882588c6a6463f1f4acb3f475c)
Merged-In: I3661dc7c5ab79872ad9d55be522088eef2998756
Change-Id: I3661dc7c5ab79872ad9d55be522088eef2998756
parent 6ca8fcb8
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