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

Commit fb5168a3 authored by Dennis Kempin's avatar Dennis Kempin
Browse files

SystemGestures: Only send touch events to gesture detector.

The gesture detector does only accept touch events, not other
pointer events. This causes unnecessary warnings in logcat.

BUG=b/26388796
TEST=Use mouse, no more warnings in logs.

Change-Id: Ibc98f5101d95d588562164707dc0e6953e25e794
(cherry picked from commit ac3a4c478a6aa37be002de19789b5700f1d6e4c4)
parent f8b32661
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -89,7 +89,7 @@ public class SystemGesturesPointerEventListener implements PointerEventListener

    @Override
    public void onPointerEvent(MotionEvent event) {
        if (mGestureDetector != null) {
        if (mGestureDetector != null && event.isTouchEvent()) {
            mGestureDetector.onTouchEvent(event);
        }
        switch (event.getActionMasked()) {