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

Skip to content
Commit 1a68dc9b authored by Vadim Tryshev's avatar Vadim Tryshev
Browse files

Fixing non-delivering of DRAG_START event to each view

The problem was that GroupView.dispatchDragEvent didn’t send ACTION_DRAG_STARTED
to GroupView itself in case when there is a child that is interested
in this drag.

Now, delivering DRAG_STARTED to all children and to GroupView itself.

Also corrected delivery of DRAG_ENDED to match docs: it will be delivered
only to the views that returned true from DRAG_STARTED.

Same story with Enter, Exit and Location notifications: they are delivered
only to children that returned true from DRAG_START.

Delivery to
the ViewGroup itself never depends on a child’s return value.

Bug: 22028725
Change-Id: I44495d6da8423c9cc012f029233f4604cb60c74b
parent c9275e76
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment