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

Commit 55d93811 authored by Shawn Lin's avatar Shawn Lin Committed by Android (Google) Code Review
Browse files

Merge "Fix status bar is barely visible when the dim window is above it" into udc-qpr-dev

parents e7a32084 8f541252
Loading
Loading
Loading
Loading
+8 −3
Original line number Diff line number Diff line
@@ -1527,7 +1527,12 @@ public class DisplayPolicy {
            }
        } else if (win.isDimming()) {
            if (mStatusBar != null) {
                if (addStatusBarAppearanceRegionsForDimmingWindow(
                // If the dim window is below status bar window, we should update the appearance
                // region if needed. Otherwise, leave it as it is.
                final int statusBarLayer = mStatusBar.mToken.getWindowLayerFromType();
                final int targetWindowLayer = win.mToken.getWindowLayerFromType();
                if (targetWindowLayer < statusBarLayer
                        && addStatusBarAppearanceRegionsForDimmingWindow(
                                win.mAttrs.insetsFlags.appearance & APPEARANCE_LIGHT_STATUS_BARS,
                                mStatusBar.getFrame(), win.getBounds(), win.getFrame())) {
                    addSystemBarColorApp(win);