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

Commit e7a4e636 authored by Alan Viverette's avatar Alan Viverette
Browse files

Revert change f449c0c3.

Previously, onHoverEvent() would return true if a view was hoverable
and consume the event. After the change, it would return the result of
dispatchGenericMotionEventInternal(). As a result, touch exploration
caused multiple hover events to be sent from every view under a given
touch point. This change reverts to the original behavior and fixes
touch exploration.

BUG: 8723842
Change-Id: I0c7362f19c51bf21ed842711a03b7f02613958d2
parent e00a3b80
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -8228,7 +8228,10 @@ 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).
            return dispatchGenericMotionEventInternal(event);
            dispatchGenericMotionEventInternal(event);
            // The event was already handled by calling setHovered(), so always
            // return true.
            return true;
        }
        return false;