Merge "Don't consider app as top app if alpha = 0" into oc-dev

This commit is contained in:
TreeHugger Robot
2017-04-14 01:06:47 +00:00
committed by Android (Google) Code Review

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