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

Commit fecbc67e authored by Prashant Malani's avatar Prashant Malani
Browse files

Let Rotary encoder events skip IME

Rotary Encoder input events don't need to go through the IME, and hence
should skip it. This will save IPC round trip time, and cut down on
latency.

Bug: 29207649
Change-Id: I8b5062b9c409b338b2254232a2e0f7819d9b71de
parent 45950fa3
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -6039,7 +6039,8 @@ public final class ViewRootImpl implements ViewParent,
                return true;
            }
            return mEvent instanceof MotionEvent
                    && mEvent.isFromSource(InputDevice.SOURCE_CLASS_POINTER);
                    && (mEvent.isFromSource(InputDevice.SOURCE_CLASS_POINTER)
                        || mEvent.isFromSource(InputDevice.SOURCE_ROTARY_ENCODER));
        }

        public boolean shouldSendToSynthesizer() {