@Override public void onTabClosing(long time,int id){
  reset();
  forceAnimationToFinish();
  TabModel model=mTabModelSelector.getModelForTabId(id);
  if (model != null) {
    mClosedTab=createLayoutTab(id,model.isIncognito(),NO_CLOSE_BUTTON,NO_TITLE);
    mClosedTab.setBorderAlpha(0.0f);
    mLayoutTabs=new LayoutTab[]{mClosedTab};
    updateCacheVisibleIds(new LinkedList<Integer>(Arrays.asList(id)));
  }
 else {
    mLayoutTabs=null;
    mClosedTab=null;
  }
  super.onTabClosing(time,id);
}

@ Override public void onTabClosing ( long time , int id ) { reset ( ) ; forceAnimationToFinish ( ) ; TabModel model = mTabModelSelector . getModelForTabId ( id ) ; if ( model != null ) { mClosedTab = createLayoutTab ( id , model . isIncognito ( ) , NO_CLOSE_BUTTON , NO_TITLE ) ; mClosedTab . setBorderAlpha ( 0.0f ) ; mLayoutTabs = new LayoutTab [ ] { mClosedTab } ; updateCacheVisibleIds ( new LinkedList < Integer > ( Arrays . asList ( id ) ) ) ; } else { mLayoutTabs = null ; mClosedTab = null ; } super . onTabClosing ( time , id ) ; }
set up for the tab closing animation
