@Override
    public int convertToAbsoluteDirection(final int flags, final int layoutDirection) {
        if (swipeBack) {
            swipeBack = false;
            return 0;
        } else {
            return super.convertToAbsoluteDirection(flags, layoutDirection);
        }
    }
This callback works with {@link RemovableViewHolder}. Only view holders that inherit from this class may be removed.
app/src/main/java/no/nordicsemi/android/nrfmesh/widgets/RemovableItemTouchHelperCallback.java