Loading libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/DesktopModeWindowDecorViewModel.java +4 −3 Original line number Diff line number Diff line Loading @@ -1548,7 +1548,7 @@ public class DesktopModeWindowDecorViewModel implements WindowDecorViewModel, if (event instanceof MotionEvent) { handled = true; DesktopModeWindowDecorViewModel.this .handleReceivedMotionEvent((MotionEvent) event, mInputMonitor); .handleReceivedMotionEvent((MotionEvent) event, getToken()); } finishInputEvent(event, handled); } Loading Loading @@ -1615,7 +1615,7 @@ public class DesktopModeWindowDecorViewModel implements WindowDecorViewModel, * * @param ev the {@link MotionEvent} received by {@link EventReceiver} */ private void handleReceivedMotionEvent(MotionEvent ev, InputMonitor inputMonitor) { private void handleReceivedMotionEvent(MotionEvent ev, IBinder inputChannelToken) { final DesktopModeWindowDecoration relevantDecor = getRelevantWindowDecor(ev); if (mShellDesktopState.canEnterDesktopMode()) { if (!mInImmersiveMode && (relevantDecor == null Loading @@ -1629,7 +1629,8 @@ public class DesktopModeWindowDecorViewModel implements WindowDecorViewModel, // Prevent status bar from reacting to a caption drag. if (mShellDesktopState.canEnterDesktopMode()) { if (mTransitionDragActive) { inputMonitor.pilferPointers(); final InputManager inputManager = mContext.getSystemService(InputManager.class); inputManager.pilferPointers(inputChannelToken); } } } Loading Loading
libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/DesktopModeWindowDecorViewModel.java +4 −3 Original line number Diff line number Diff line Loading @@ -1548,7 +1548,7 @@ public class DesktopModeWindowDecorViewModel implements WindowDecorViewModel, if (event instanceof MotionEvent) { handled = true; DesktopModeWindowDecorViewModel.this .handleReceivedMotionEvent((MotionEvent) event, mInputMonitor); .handleReceivedMotionEvent((MotionEvent) event, getToken()); } finishInputEvent(event, handled); } Loading Loading @@ -1615,7 +1615,7 @@ public class DesktopModeWindowDecorViewModel implements WindowDecorViewModel, * * @param ev the {@link MotionEvent} received by {@link EventReceiver} */ private void handleReceivedMotionEvent(MotionEvent ev, InputMonitor inputMonitor) { private void handleReceivedMotionEvent(MotionEvent ev, IBinder inputChannelToken) { final DesktopModeWindowDecoration relevantDecor = getRelevantWindowDecor(ev); if (mShellDesktopState.canEnterDesktopMode()) { if (!mInImmersiveMode && (relevantDecor == null Loading @@ -1629,7 +1629,8 @@ public class DesktopModeWindowDecorViewModel implements WindowDecorViewModel, // Prevent status bar from reacting to a caption drag. if (mShellDesktopState.canEnterDesktopMode()) { if (mTransitionDragActive) { inputMonitor.pilferPointers(); final InputManager inputManager = mContext.getSystemService(InputManager.class); inputManager.pilferPointers(inputChannelToken); } } } Loading