@Override
      public void beforeSelectionChanged(TabInfo oldSelection, TabInfo newSelection) {
        if (oldSelection != null && myContext.isStateBeingRestored()) {
          saveUiState();
        }
      }
@Override
      public void beforeSelectionChanged(TabInfo oldSelection, TabInfo newSelection)