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

Commit 64076958 authored by Svetoslav's avatar Svetoslav Committed by Android Git Automerger
Browse files

am 72ab9b80: Merge "Respect custom view drawing order when dispatching hover...

am 72ab9b80: Merge "Respect custom view drawing order when dispatching hover events." into jb-mr2-dev

* commit '72ab9b80':
  Respect custom view drawing order when dispatching hover events.
parents 019895e2 72ab9b80
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -1464,10 +1464,13 @@ public abstract class ViewGroup extends View implements ViewParent, ViewManager
            final float y = event.getY();
            final int childrenCount = mChildrenCount;
            if (childrenCount != 0) {
                final boolean customChildOrder = isChildrenDrawingOrderEnabled();
                final View[] children = mChildren;
                HoverTarget lastHoverTarget = null;
                for (int i = childrenCount - 1; i >= 0; i--) {
                    final View child = children[i];
                    final int childIndex = customChildOrder
                            ? getChildDrawingOrder(childrenCount, i) : i;
                    final View child = children[childIndex];
                    if (!canViewReceivePointerEvents(child)
                            || !isTransformedTouchPointInView(x, y, child, null)) {
                        continue;