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

Commit c5bd9bc8 authored by Jun Mukai's avatar Jun Mukai
Browse files

Fix: input source comparison -> MotionEvent.isFromSource()

Bug: 20093789
Change-Id: I8c14a3b6b92826d27d09f0113c1be47786f94570
parent 0a5e256d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -131,7 +131,7 @@ public class SystemGesturesPointerEventListener implements PointerEventListener
                }
                break;
            case MotionEvent.ACTION_HOVER_MOVE:
                if (event.getDevice().getSources() == InputDevice.SOURCE_MOUSE) {
                if (event.isFromSource(InputDevice.SOURCE_MOUSE)) {
                    if (!mMouseHoveringAtEdge && event.getY() == 0) {
                        mCallbacks.onMouseHoverAtTop();
                        mMouseHoveringAtEdge = true;