Loading libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/DesktopModeWindowDecoration.java +9 −0 Original line number Diff line number Diff line Loading @@ -469,6 +469,14 @@ public class DesktopModeWindowDecoration extends WindowDecoration<WindowDecorLin } } // If we get a relayout call while hovering over maximize button in the app header but the // task has lost focus, explicitly cancel the hover (since we don't get a HOVER_EXIT signal // in this case). if (!taskInfo.isFocused && mIsAppHeaderMaximizeButtonHovered) { setAppHeaderMaximizeButtonHovered(false); onMaximizeButtonHoverExit(); } if (isHandleMenuActive()) { mHandleMenu.relayout( startT, Loading Loading @@ -2010,6 +2018,7 @@ public class DesktopModeWindowDecoration extends WindowDecoration<WindowDecorLin */ @Override public void onMaximizeButtonHoverEnter() { if (!mTaskInfo.isFocused) return; asAppHeader(mWindowDecorViewHolder).onMaximizeWindowHoverEnter(); } Loading libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/caption/AppHeaderController.kt +8 −0 Original line number Diff line number Diff line Loading @@ -201,6 +201,14 @@ class AppHeaderController( traceTag = Trace.TRACE_TAG_WINDOW_MANAGER, name = "AppHeaderController#relayout", ) { // If we get a relayout call while hovering over maximize button in the app header but // the task has lost focus, explicitly cancel the hover (since we don't get a HOVER_EXIT // signal in this case). if (!taskInfo.isFocused && isAppHeaderMaximizeButtonHovered) { setAppHeaderMaximizeButtonHovered(hovered = false) onMaximizeButtonHoverExit() } val captionLayout = super.relayout( params, Loading libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/viewholder/AppHeaderViewHolder.kt +1 −0 Original line number Diff line number Diff line Loading @@ -710,6 +710,7 @@ class AppHeaderViewHolder( } fun onMaximizeWindowHoverEnter() { if (!currentTaskInfo.isFocused) return maximizeButtonView.startHoverAnimation() } Loading Loading
libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/DesktopModeWindowDecoration.java +9 −0 Original line number Diff line number Diff line Loading @@ -469,6 +469,14 @@ public class DesktopModeWindowDecoration extends WindowDecoration<WindowDecorLin } } // If we get a relayout call while hovering over maximize button in the app header but the // task has lost focus, explicitly cancel the hover (since we don't get a HOVER_EXIT signal // in this case). if (!taskInfo.isFocused && mIsAppHeaderMaximizeButtonHovered) { setAppHeaderMaximizeButtonHovered(false); onMaximizeButtonHoverExit(); } if (isHandleMenuActive()) { mHandleMenu.relayout( startT, Loading Loading @@ -2010,6 +2018,7 @@ public class DesktopModeWindowDecoration extends WindowDecoration<WindowDecorLin */ @Override public void onMaximizeButtonHoverEnter() { if (!mTaskInfo.isFocused) return; asAppHeader(mWindowDecorViewHolder).onMaximizeWindowHoverEnter(); } Loading
libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/caption/AppHeaderController.kt +8 −0 Original line number Diff line number Diff line Loading @@ -201,6 +201,14 @@ class AppHeaderController( traceTag = Trace.TRACE_TAG_WINDOW_MANAGER, name = "AppHeaderController#relayout", ) { // If we get a relayout call while hovering over maximize button in the app header but // the task has lost focus, explicitly cancel the hover (since we don't get a HOVER_EXIT // signal in this case). if (!taskInfo.isFocused && isAppHeaderMaximizeButtonHovered) { setAppHeaderMaximizeButtonHovered(hovered = false) onMaximizeButtonHoverExit() } val captionLayout = super.relayout( params, Loading
libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/viewholder/AppHeaderViewHolder.kt +1 −0 Original line number Diff line number Diff line Loading @@ -710,6 +710,7 @@ class AppHeaderViewHolder( } fun onMaximizeWindowHoverEnter() { if (!currentTaskInfo.isFocused) return maximizeButtonView.startHoverAnimation() } Loading