From a59ebe3ec0e3aa51e11f2fea7d938bf617fc0282 Mon Sep 17 00:00:00 2001 From: Garfield Tan Date: Wed, 14 Jun 2023 16:10:47 -0700 Subject: [PATCH] Fix wrong comments in DragResizeInputListener Geometry updates were used to signal a complete cycle of resize handling, and the readiness of taking the next batch of input events for handling. However, it's not guaranteed there will be a gemoetry update for all input events we handle, so we changed the way we handle batched input events to be Choreographer based, but we left the incorrect comment until now. Bug: 239973193 Test: Builds. Change-Id: I171d0403ff5fbc406b1de33019d0a1efbd8dfc09 --- .../wm/shell/windowdecor/DragResizeInputListener.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/DragResizeInputListener.java b/libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/DragResizeInputListener.java index 68b63e62f09b2..742893f66b8d9 100644 --- a/libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/DragResizeInputListener.java +++ b/libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/DragResizeInputListener.java @@ -130,12 +130,7 @@ class DragResizeInputListener implements AutoCloseable { } /** - * Updates geometry of this drag resize handler. Needs to be called every time there is a size - * change to notify the input event receiver it's ready to take the next input event. Otherwise - * it'll keep batching move events and the drag resize process is stalled. - * - * This is also used to update the touch regions of this handler every event dispatched here is - * a potential resize request. + * Updates the geometry (the touch region) of this drag resize handler. * * @param taskWidth The width of the task. * @param taskHeight The height of the task.