Loading services/core/java/com/android/server/wm/Task.java +11 −3 Original line number Diff line number Diff line Loading @@ -2927,9 +2927,17 @@ class Task extends WindowContainer<WindowContainer> { // Don't crop HOME/RECENTS windows to stack bounds. This is because in split-screen // they extend past their stack and sysui uses the stack surface to control cropping. // TODO(b/158242495): get rid of this when drag/drop can use surface bounds. final boolean isTopHomeOrRecents = (isActivityTypeHome() || isActivityTypeRecents()) && getRootTask().getTopMostTask() == this; return isResizeable() && !isTopHomeOrRecents; if (isActivityTypeHome() || isActivityTypeRecents()) { // Make sure this is the top-most non-organizer root task (if not top-most, it means // another translucent task could be above this, so this needs to stay cropped. final Task rootTask = getRootTask(); final Task topNonOrgTask = rootTask.mCreatedByOrganizer ? rootTask.getTopMostTask() : rootTask; if (isDescendantOf(topNonOrgTask)) { return false; } } return isResizeable(); } /** Loading services/core/java/com/android/server/wm/WindowState.java +1 −0 Original line number Diff line number Diff line Loading @@ -3416,6 +3416,7 @@ class WindowState extends WindowContainer<WindowState> implements WindowManagerP private void setTouchableRegionCropIfNeeded(InputWindowHandle handle) { final Task task = getTask(); if (task == null || !task.cropWindowsToStackBounds()) { handle.setTouchableRegionCrop(null); return; } Loading Loading
services/core/java/com/android/server/wm/Task.java +11 −3 Original line number Diff line number Diff line Loading @@ -2927,9 +2927,17 @@ class Task extends WindowContainer<WindowContainer> { // Don't crop HOME/RECENTS windows to stack bounds. This is because in split-screen // they extend past their stack and sysui uses the stack surface to control cropping. // TODO(b/158242495): get rid of this when drag/drop can use surface bounds. final boolean isTopHomeOrRecents = (isActivityTypeHome() || isActivityTypeRecents()) && getRootTask().getTopMostTask() == this; return isResizeable() && !isTopHomeOrRecents; if (isActivityTypeHome() || isActivityTypeRecents()) { // Make sure this is the top-most non-organizer root task (if not top-most, it means // another translucent task could be above this, so this needs to stay cropped. final Task rootTask = getRootTask(); final Task topNonOrgTask = rootTask.mCreatedByOrganizer ? rootTask.getTopMostTask() : rootTask; if (isDescendantOf(topNonOrgTask)) { return false; } } return isResizeable(); } /** Loading
services/core/java/com/android/server/wm/WindowState.java +1 −0 Original line number Diff line number Diff line Loading @@ -3416,6 +3416,7 @@ class WindowState extends WindowContainer<WindowState> implements WindowManagerP private void setTouchableRegionCropIfNeeded(InputWindowHandle handle) { final Task task = getTask(); if (task == null || !task.cropWindowsToStackBounds()) { handle.setTouchableRegionCrop(null); return; } Loading