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

Commit 2c4640b5 authored by Jorim Jaggi's avatar Jorim Jaggi
Browse files

Don't consider app as top app if alpha = 0

Test: Open acetone launcher, make sure status bar changes color
Change-Id: I579034793deccabafce3399bd2c0bb7581ede016
Fixes: 37247006
parent 3f1febbe
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -5238,7 +5238,7 @@ public class PhoneWindowManager implements WindowManagerPolicy {
    @Override
    public void applyPostLayoutPolicyLw(WindowState win, WindowManager.LayoutParams attrs,
            WindowState attached, WindowState imeTarget) {
        final boolean visible = !win.isGoneForLayoutLw();
        final boolean visible = !win.isGoneForLayoutLw() && win.getAttrs().alpha > 0f;
        if (DEBUG_LAYOUT) Slog.i(TAG, "Win " + win + ": isVisible=" + visible);
        applyKeyguardPolicyLw(win, imeTarget);
        final int fl = PolicyControl.getWindowFlags(win, attrs);