Merge "Fix bug 2995805 - splitMotionEvents behavior change"

This commit is contained in:
Adam Powell
2010-09-13 18:18:47 -07:00
committed by Android (Google) Code Review

View File

@@ -877,7 +877,7 @@ public abstract class ViewGroup extends View implements ViewParent, ViewManager
mSplitMotionTargets = new SplitMotionTargets();
}
return dispatchSplitTouchEvent(ev);
}
}
final int action = ev.getAction();
final float xf = ev.getX();
@@ -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();
}