Always close the handle menu if the window loses focus

Bug: 271487478
Test: with two freeform tasks open, open the handle menu on the
focused one, then bring the other one to front, and make sure
the handle menu is closed on the original window

Change-Id: I3460e27e6523ebde1c400f4b9ad63387ed36bb1a
This commit is contained in:
Jorge Gil
2023-03-16 23:35:25 +00:00
parent d5e48ae236
commit cc5d297cae

View File

@@ -190,6 +190,10 @@ public class DesktopModeWindowDecoration extends WindowDecoration<WindowDecorLin
}
mWindowDecorViewHolder.bindData(mTaskInfo);
if (!mTaskInfo.isFocused) {
closeHandleMenu();
}
if (!isDragResizeable) {
closeDragResizeListener();
return;