public TabUma(Tab tab,TabCreationState creationState,TabModel model){
  mTab=tab;
  mTabCreationState=creationState;
  mTabModel=model;
  mLastTabStateChangeMillis=System.currentTimeMillis();
  if (mTabCreationState == TabCreationState.LIVE_IN_FOREGROUND || mTabCreationState == TabCreationState.FROZEN_ON_RESTORE) {
    updateTabState(TAB_STATE_ACTIVE);
  }
 else   if (mTabCreationState == TabCreationState.LIVE_IN_BACKGROUND || mTabCreationState == TabCreationState.FROZEN_FOR_LAZY_LOAD) {
    updateTabState(TAB_STATE_INACTIVE);
  }
}

public TabUma ( Tab tab , TabCreationState creationState , TabModel model ) { mTab = tab ; mTabCreationState = creationState ; mTabModel = model ; mLastTabStateChangeMillis = System . currentTimeMillis ( ) ; if ( mTabCreationState == TabCreationState . LIVE_IN_FOREGROUND || mTabCreationState == TabCreationState . FROZEN_ON_RESTORE ) { updateTabState ( TAB_STATE_ACTIVE ) ; } else if ( mTabCreationState == TabCreationState . LIVE_IN_BACKGROUND || mTabCreationState == TabCreationState . FROZEN_FOR_LAZY_LOAD ) { updateTabState ( TAB_STATE_INACTIVE ) ; } }
constructs a new uma tracker for a specific tab .
