Loading libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/DesktopModeWindowDecoration.java +7 −0 Original line number Diff line number Diff line Loading @@ -524,6 +524,13 @@ public class DesktopModeWindowDecoration extends WindowDecoration<WindowDecorLin setCapturedLink(taskInfo.capturedLink, taskInfo.capturedLinkTimestamp); } if (DesktopExperienceFlags.ENABLE_BUG_FIXES_FOR_SECONDARY_DISPLAY.isTrue()) { final Context dc = mDisplayController.getDisplayContext(taskInfo.displayId); if (dc != null) { mWindowManagerWrapper.updateWindowManager(dc.getSystemService(WindowManager.class)); } } if (isHandleMenuActive()) { mHandleMenu.relayout( startT, Loading libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/WindowManagerWrapper.kt +5 −2 Original line number Diff line number Diff line Loading @@ -24,9 +24,8 @@ import android.view.WindowManager * decors more testable. */ class WindowManagerWrapper ( private val windowManager: WindowManager private var windowManager: WindowManager ){ fun addView(v: View, lp: WindowManager.LayoutParams) { windowManager.addView(v, lp) } Loading @@ -38,4 +37,8 @@ class WindowManagerWrapper ( fun updateViewLayout(v: View, lp: WindowManager.LayoutParams) { windowManager.updateViewLayout(v, lp) } fun updateWindowManager(windowManager: WindowManager) { this.windowManager = windowManager } } No newline at end of file Loading
libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/DesktopModeWindowDecoration.java +7 −0 Original line number Diff line number Diff line Loading @@ -524,6 +524,13 @@ public class DesktopModeWindowDecoration extends WindowDecoration<WindowDecorLin setCapturedLink(taskInfo.capturedLink, taskInfo.capturedLinkTimestamp); } if (DesktopExperienceFlags.ENABLE_BUG_FIXES_FOR_SECONDARY_DISPLAY.isTrue()) { final Context dc = mDisplayController.getDisplayContext(taskInfo.displayId); if (dc != null) { mWindowManagerWrapper.updateWindowManager(dc.getSystemService(WindowManager.class)); } } if (isHandleMenuActive()) { mHandleMenu.relayout( startT, Loading
libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/WindowManagerWrapper.kt +5 −2 Original line number Diff line number Diff line Loading @@ -24,9 +24,8 @@ import android.view.WindowManager * decors more testable. */ class WindowManagerWrapper ( private val windowManager: WindowManager private var windowManager: WindowManager ){ fun addView(v: View, lp: WindowManager.LayoutParams) { windowManager.addView(v, lp) } Loading @@ -38,4 +37,8 @@ class WindowManagerWrapper ( fun updateViewLayout(v: View, lp: WindowManager.LayoutParams) { windowManager.updateViewLayout(v, lp) } fun updateWindowManager(windowManager: WindowManager) { this.windowManager = windowManager } } No newline at end of file