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. Change-Id: I3661dc7c5ab79872ad9d55be522088eef2998756
Loading
Please register or sign in to comment