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

Commit aa45fe2c authored by Jeremy Walker's avatar Jeremy Walker Committed by Android (Google) Code Review
Browse files

Merge "Fixes NPE when child is null." into main

parents 03b7df4a 4d7a2b0c
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -2798,9 +2798,10 @@ public abstract class ViewGroup extends View implements ViewParent, ViewManager
                    if (alreadyDispatchedToNewTouchTarget && target == newTouchTarget) {
                        handled = true;
                    } else {
                        final boolean cancelChild = resetCancelNextUpFlag(target.child)
                        final boolean cancelChild =
                                (target.child != null && resetCancelNextUpFlag(target.child))
                                        || intercepted;
                        if (dispatchTransformedTouchEvent(ev, cancelChild,
                        if (target.child != null && dispatchTransformedTouchEvent(ev, cancelChild,
                                target.child, target.pointerIdBits)) {
                            handled = true;
                        }