Skip to content

Unrequired parameter : disallowIntercept #16

Description

@droidevs
 public boolean onInterceptTouchEvent(MotionEvent event) {
        if ( **disallowIntercept** && isViewGroup(draggedView)) {
            final View neededScrollView = getNeededTouchView(event, (ViewGroup) draggedView);
            final Point touchPoint = new Point((int) event.getX(), (int) event.getY());

            if (neededScrollView != null && isViewTouchTarget(neededScrollView, touchPoint)) {
                return false;
            }
        }

        return isSwipeViewTarget(event) && dragHelper.shouldInterceptTouchEvent(event);
    }

if the child of this view called disallowInterceptTouchEvent the onInterceptTouchEvent of parent won't be called anyway so i don't see any need to use the disallowIntercept variable

please check this and let me know

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions