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

Commit 39d78ddb authored by Jun Mukai's avatar Jun Mukai Committed by Android (Google) Code Review
Browse files

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

parents 8f8b5d58 c5bd9bc8
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;