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

Commit a2491668 authored by Rob Carr's avatar Rob Carr Committed by Android (Google) Code Review
Browse files

Merge "Clear opaque flag when surface insets change." into nyc-dev

parents 502094cc b80d781f
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -2758,6 +2758,13 @@ public class WindowManagerService extends IWindowManager.Stub
            }
            win.setWindowScale(win.mRequestedWidth, win.mRequestedHeight);

            if (win.mAttrs.surfaceInsets.left != 0
                    || win.mAttrs.surfaceInsets.top != 0
                    || win.mAttrs.surfaceInsets.right != 0
                    || win.mAttrs.surfaceInsets.bottom != 0) {
                winAnimator.setOpaqueLocked(false);
            }

            boolean imMayMove = (flagChanges & (FLAG_ALT_FOCUSABLE_IM | FLAG_NOT_FOCUSABLE)) != 0;
            final boolean isDefaultDisplay = win.isDefaultDisplay();
            boolean focusMayChange = isDefaultDisplay && (win.mViewVisibility != viewVisibility