commit | 47fcd86ac09cf1f8f7f248134badc369764914f3 | [log] [tgz] |
---|---|---|
author | Eghosa Ewansiha-Vlachavas <[email protected]> | Fri Sep 20 12:27:18 2024 +0000 |
committer | Eghosa Ewansiha-Vlachavas <[email protected]> | Fri Sep 20 15:34:13 2024 +0000 |
tree | 0f2cf66b89642abbddefcc9f97eea4bb6b71546a | |
parent | 74323a7491da8ce876dbdb54ae8a499a52d8d7ea [diff] |
Set exclusion region based on drag resizability not task resizability As unresizeable apps can now be drag resized. Flag: NONE(bug fix) Fixes: 368079684 Test: manual Change-Id: I9a68cb360531eab90b5a1196f9f3739e68299bd3
diff --git a/libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/DesktopModeWindowDecoration.java b/libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/DesktopModeWindowDecoration.java index bcad4633..e47ebea 100644 --- a/libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/DesktopModeWindowDecoration.java +++ b/libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/DesktopModeWindowDecoration.java
@@ -1374,7 +1374,7 @@ */ private Region getGlobalExclusionRegion() { Region exclusionRegion; - if (mDragResizeListener != null && mTaskInfo.isResizeable) { + if (mDragResizeListener != null && isDragResizable(mTaskInfo)) { exclusionRegion = mDragResizeListener.getCornersRegion(); } else { exclusionRegion = new Region();