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

Commit f449c0c3 authored by Masanori Ogino's avatar Masanori Ogino
Browse files

fix hover events consume issue

View#onHoverEvent() would always consume hover events over the view
if an application window has the clickable view/widget on it.
That's happened even if accessibility/talkback is disabled.
So those events will not dispatch to activity#onGenericMotionEvent().

The onHoverEvent method should return a real consumed state.

Change-Id: I9cac13b82866e5cdda0b03befb0de752a0a2e741
parent b1e16f11
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -8064,8 +8064,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
            // in onHoverEvent.
            // Note that onGenericMotionEvent will be called by default when
            // onHoverEvent returns false (refer to dispatchGenericMotionEvent).
            dispatchGenericMotionEventInternal(event);
            return true;
            return dispatchGenericMotionEventInternal(event);
        }
        return false;