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
This commit is contained in:
Jorim Jaggi
2017-04-11 17:15:30 -07:00
parent 3f1febbedb
commit 2c4640b5ad

View File

@@ -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);