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

Commit b7213a25 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix hung input event while resizing"

parents 223ccc0d 54872c31
Loading
Loading
Loading
Loading
+7 −6
Original line number Diff line number Diff line
@@ -133,14 +133,15 @@ class TaskPositioner implements IBinder.DeathRecipient {

        @Override
        public void onInputEvent(InputEvent event) {
            boolean handled = false;
            try {
                // All returns need to be in the try block to make sure the finishInputEvent is
                // called correctly.
                if (!(event instanceof MotionEvent)
                        || (event.getSource() & InputDevice.SOURCE_CLASS_POINTER) == 0) {
                    return;
                }
                final MotionEvent motionEvent = (MotionEvent) event;
            boolean handled = false;

            try {
                if (mDragEnded) {
                    // The drag has ended but the clean-up message has not been processed by
                    // window manager. Drop events that occur after this until window manager