[wm]: Fixed TaskPositioner leak
If application process handles motion events late, it requests to start moving task after MotionEvent.ACTION_UP is already fired. In that case, system will wait for event that is not comming and cannot end drag state. It's expected that the system finishes moving task when system receives ACTION_UP by transfering touch focus. In a problem case, ACTION_UP event is already sent to the application process before transfering touch focus. If application receives ACTION_UP event after requesting moving task, notify the system of finishing previous request. Test: Quickly try to resize freeform windowing app repeatedly. Test: atest WmTests:TaskPositioningControllerTests Bug: 129507487 Change-Id: Ifa457ddc55524cae6da455e770472781a7805282 (cherry picked from commit 9a1cd7b5063229da536a1281916ae15ec9246d1a)
Loading
Please register or sign in to comment