Skip to content

Unrequired parameter : disallowIntercept #16

@droidevs

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

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