public void onRangeChanged(){
  mAdapter.setRange(mMinDate,mMaxDate);
  setDate(mSelectedDay.getTimeInMillis(),false,false);
  updateButtonVisibility(mViewPager.getCurrentItem());
}

public void onRangeChanged ( ) { mAdapter . setRange ( mMinDate , mMaxDate ) ; setDate ( mSelectedDay . getTimeInMillis ( ) , false , false ) ; updateButtonVisibility ( mViewPager . getCurrentItem ( ) ) ; }
handles changes to date range .
