Loading core/java/android/app/ActivityManager.java +7 −0 Original line number Diff line number Diff line Loading @@ -697,6 +697,13 @@ public class ActivityManager { && stackId != DOCKED_STACK_ID && stackId != PINNED_STACK_ID; } /** * Returns true if the input stack is affected by drag resizing. */ public static boolean isStackAffectedByDragResizing(int stackId) { return isStaticStack(stackId) && stackId != PINNED_STACK_ID; } /** * Returns true if the windows of tasks being moved to the target stack from the source * stack should be replaced, meaning that window manager will keep the old window around Loading services/core/java/com/android/server/wm/WindowState.java +3 −1 Original line number Diff line number Diff line Loading @@ -3199,8 +3199,10 @@ class WindowState extends WindowContainer<WindowState> implements WindowManagerP if (task == null) { return false; } if (!StackId.isStackAffectedByDragResizing(getStackId())) { return false; } if (mAttrs.width != MATCH_PARENT || mAttrs.height != MATCH_PARENT) { // Floating windows never enter drag resize mode. return false; } Loading Loading
core/java/android/app/ActivityManager.java +7 −0 Original line number Diff line number Diff line Loading @@ -697,6 +697,13 @@ public class ActivityManager { && stackId != DOCKED_STACK_ID && stackId != PINNED_STACK_ID; } /** * Returns true if the input stack is affected by drag resizing. */ public static boolean isStackAffectedByDragResizing(int stackId) { return isStaticStack(stackId) && stackId != PINNED_STACK_ID; } /** * Returns true if the windows of tasks being moved to the target stack from the source * stack should be replaced, meaning that window manager will keep the old window around Loading
services/core/java/com/android/server/wm/WindowState.java +3 −1 Original line number Diff line number Diff line Loading @@ -3199,8 +3199,10 @@ class WindowState extends WindowContainer<WindowState> implements WindowManagerP if (task == null) { return false; } if (!StackId.isStackAffectedByDragResizing(getStackId())) { return false; } if (mAttrs.width != MATCH_PARENT || mAttrs.height != MATCH_PARENT) { // Floating windows never enter drag resize mode. return false; } Loading