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

Commit 0a13bfde authored by Jorim Jaggi's avatar Jorim Jaggi
Browse files

Fix disappearing translucent status bar background

When relaunching an activity while preserving the window, the content
view was put on top of the status bar background, making it disappear
in case of translucent status bar backgrounds.

Change-Id: I1edff29c10616bf5386e982d7336327135f0f7a0
parent e074f31c
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1706,7 +1706,9 @@ public class DecorView extends FrameLayout implements RootViewSurfaceTaker, Wind
            mDecorCaptionView.addView(root,
                    new ViewGroup.MarginLayoutParams(MATCH_PARENT, MATCH_PARENT));
        } else {
            addView(root, new ViewGroup.LayoutParams(MATCH_PARENT, MATCH_PARENT));

            // Put it below the color views.
            addView(root, 0, new ViewGroup.LayoutParams(MATCH_PARENT, MATCH_PARENT));
        }
        mContentRoot = (ViewGroup) root;
        initializeElevation();