@Override protected void onPerformAction() { super.onPerformAction(); AbstractDataProvider.Data item = mAdapter.mProvider.getItem(mPosition); if (item.isPinned()) { item.setPinned(false); mAdapter.notifyItemChanged(mPosition); } }
@Override protected void onCleanUp() { super.onCleanUp(); // clear the references mAdapter = null; }