@Override
  public boolean onMove(
      final RecyclerView recyclerView,
      final RecyclerView.ViewHolder source,
      final RecyclerView.ViewHolder target) {

    if (source.getItemViewType() != target.getItemViewType()) {
      return false;
    }

    mAdapter.onItemMove(source.getAdapterPosition(), target.getAdapterPosition());
    return true;
  }
 @Override
 public void onSwiped(RecyclerView.ViewHolder viewHolder, int i) {
   mAdapter.onItemSwiped(viewHolder.getAdapterPosition(), i == 16);
 }
 @Override
 public boolean onMove(
     RecyclerView recyclerView, RecyclerView.ViewHolder source, RecyclerView.ViewHolder target) {
   mAdapter.onItemMove(source.getAdapterPosition(), target.getAdapterPosition());
   return true;
 }
  @Override
  public void onSwiped(final RecyclerView.ViewHolder viewHolder, final int direction) {

    mAdapter.onItemDismiss(viewHolder.getAdapterPosition());
  }