Merge "Clear opaque flag when surface insets change." into nyc-dev
diff --git a/services/core/java/com/android/server/wm/WindowManagerService.java b/services/core/java/com/android/server/wm/WindowManagerService.java
index 80bf803..cf415ff 100644
--- a/services/core/java/com/android/server/wm/WindowManagerService.java
+++ b/services/core/java/com/android/server/wm/WindowManagerService.java
@@ -2758,6 +2758,13 @@
}
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