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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user