@SuppressWarnings("WeakerAccess") public final void clearSelections(){
  if (selectedPositions.isEmpty())   return;
  int oneItemPos=selectedPositions.size() == 1 ? (int)selectedPositions.toArray()[0] : -1;
  selectedPositions.clear();
  lastSelectedPos=-1;
  if (oneItemPos != -1)   notifyItemChanged(oneItemPos);
 else   notifyDataSetChanged();
}

@ SuppressWarnings ( "WeakerAccess" ) public final void clearSelections ( ) { if ( selectedPositions . isEmpty ( ) ) return ; int oneItemPos = selectedPositions . size ( ) == 1 ? ( int ) selectedPositions . toArray ( ) [ 0 ] : - 1 ; selectedPositions . clear ( ) ; lastSelectedPos = - 1 ; if ( oneItemPos != - 1 ) notifyItemChanged ( oneItemPos ) ; else notifyDataSetChanged ( ) ; }
clears any selections that may exist .
