Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a59ebe3e authored by Garfield Tan's avatar Garfield Tan
Browse files

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
parent f312e919
Loading
Loading
Loading
Loading
+1 −6
Original line number Diff line number Diff line
@@ -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.