SwipeLayout icon indicating copy to clipboard operation
SwipeLayout copied to clipboard

Unrequired parameter : disallowIntercept

Open droidevs opened this issue 1 year ago • 0 comments

 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

droidevs avatar Aug 16 '23 11:08 droidevs