void removeAllViewsFromAdapter(ViewPager pager){
  mViews.clear();
  pager.removeAllViews();
  mIsViewPagerInIntentionallyInconsistentState=true;
}

void removeAllViewsFromAdapter ( ViewPager pager ) { mViews . clear ( ) ; pager . removeAllViews ( ) ; mIsViewPagerInIntentionallyInconsistentState = true ; }
remove all the views from the adapter and de - parents them from the viewpager after calling this , it is expected that notifydatasetchanged should be called soon afterwards .
