Merge "Fix crash when handling touch on caption" into tm-qpr-dev

This commit is contained in:
Ats Jenk
2022-11-16 19:06:53 +00:00
committed by Android (Google) Code Review

View File

@@ -317,7 +317,7 @@ class DragResizeInputListener implements AutoCloseable {
}
case MotionEvent.ACTION_UP:
case MotionEvent.ACTION_CANCEL: {
if (mDragging) {
if (mShouldHandleEvents && mDragging) {
int dragPointerIndex = e.findPointerIndex(mDragPointerId);
mCallback.onDragResizeEnd(
e.getRawX(dragPointerIndex), e.getRawY(dragPointerIndex));