@@ -0,0 +1,914 @@
+package es.craftsmanship.toledo.katangapp.adapters;%0A%0Aimport android.support.v7.widget.RecyclerView;%0Aimport android.support.v7.widget.helper.ItemTouchHelper;%0A%0A/**%0A * @author Manuel de la Pe%C3%B1a%0A */%0Apublic class DismissFavoritesTouchHelper extends ItemTouchHelper.SimpleCallback %7B%0A%0A    private FavoritesAdapter favoritesAdapter;%0A%0A    public DismissFavoritesTouchHelper(FavoritesAdapter favoritesAdapter) %7B%0A        super(ItemTouchHelper.UP %7C ItemTouchHelper.DOWN, ItemTouchHelper.LEFT %7C ItemTouchHelper.RIGHT);%0A%0A        this.favoritesAdapter = favoritesAdapter;%0A    %7D%0A%0A    @Override%0A    public boolean onMove(%0A        RecyclerView recyclerView, RecyclerView.ViewHolder viewHolder,%0A        RecyclerView.ViewHolder target) %7B%0A%0A        return false;%0A    %7D%0A%0A    @Override%0A    public void onSwiped(RecyclerView.ViewHolder viewHolder, int direction) %7B%0A        favoritesAdapter.remove(viewHolder.getAdapterPosition());%0A    %7D%0A%0A%7D

Create a touch helper to manage favorites dismissal when right-left swiping