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

Commit 5f12084d authored by Adam Powell's avatar Adam Powell Committed by Android (Google) Code Review
Browse files

Merge "Fix bug 2995805 - splitMotionEvents behavior change"

parents 87a76578 167bc821
Loading
Loading
Loading
Loading
+2 −8
Original line number Diff line number Diff line
@@ -1222,13 +1222,7 @@ public abstract class ViewGroup extends View implements ViewParent, ViewManager
                    uniqueTargetCount--;
                }

                final boolean childHandled = target.dispatchTouchEvent(targetEvent);
                handled |= childHandled;
                if (!childHandled) {
                    // Child doesn't want these events anymore, but we're still dispatching
                    // other split events to children.
                    targets.removeView(target);
                }
                handled |= target.dispatchTouchEvent(targetEvent);
            } finally {
                targetEvent.recycle();
            }