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

Commit d7e349e8 authored by Bryce Lee's avatar Bryce Lee Committed by Android Git Automerger
Browse files

am 7eeaad24: am 7a1454fe: Merge "Do not use the status bar as the system decor...

am 7eeaad24: am 7a1454fe: Merge "Do not use the status bar as the system decor layer if it is not visible." into lmp-mr1-modular-dev

* commit '7eeaad24':
  Do not use the status bar as the system decor layer if it is not visible.
parents 6f09c95c 7eeaad24
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
@@ -3508,8 +3508,14 @@ public class PhoneWindowManager implements WindowManagerPolicy {
    /** {@inheritDoc} */
    @Override
    public int getSystemDecorLayerLw() {
        if (mStatusBar != null) return mStatusBar.getSurfaceLayer();
        if (mNavigationBar != null) return mNavigationBar.getSurfaceLayer();
        if (mStatusBar != null && mStatusBar.isVisibleLw()) {
            return mStatusBar.getSurfaceLayer();
        }

        if (mNavigationBar != null && mNavigationBar.isVisibleLw()) {
            return mNavigationBar.getSurfaceLayer();
        }

        return 0;
    }