@Override public void onTabUnselected(ActionBar.Tab tab,FragmentTransaction ft){
  Bundle tabHolder=(Bundle)tab.getTag();
  String fragmentTag=tabHolder.getString(KEY_FRAGMENT_TAG,"");
  Log.d(LOG_TAG,"## onTabUnselected() FragTag=" + fragmentTag);
  saveUiTabContext(tab);
  if (fragmentTag.equals(TAG_FRAGMENT_PEOPLE_ROOM_DETAILS)) {
    if (null != mRoomDetailsMembersFragment) {
      ft.detach(mRoomDetailsMembersFragment);
    }
  }
 else   if (fragmentTag.equals(TAG_FRAGMENT_SETTINGS_ROOM_DETAIL)) {
    onTabUnselectedSettingsFragment();
  }
 else   if (fragmentTag.equals(TAG_FRAGMENT_FILES_DETAILS)) {
    if (null != mSearchFilesFragment) {
      mSearchFilesFragment.cancelCatchingRequests();
      ft.detach(mSearchFilesFragment);
    }
  }
 else {
    Log.w(LOG_TAG,"## onTabUnselected() unknown tab selected!!");
  }
}

@ Override public void onTabUnselected ( ActionBar . Tab tab , FragmentTransaction ft ) { Bundle tabHolder = ( Bundle ) tab . getTag ( ) ; String fragmentTag = tabHolder . getString ( KEY_FRAGMENT_TAG , "" ) ; Log . d ( LOG_TAG , "## onTabUnselected() FragTag=" + fragmentTag ) ; saveUiTabContext ( tab ) ; if ( fragmentTag . equals ( TAG_FRAGMENT_PEOPLE_ROOM_DETAILS ) ) { if ( null != mRoomDetailsMembersFragment ) { ft . detach ( mRoomDetailsMembersFragment ) ; } } else if ( fragmentTag . equals ( TAG_FRAGMENT_SETTINGS_ROOM_DETAIL ) ) { onTabUnselectedSettingsFragment ( ) ; } else if ( fragmentTag . equals ( TAG_FRAGMENT_FILES_DETAILS ) ) { if ( null != mSearchFilesFragment ) { mSearchFilesFragment . cancelCatchingRequests ( ) ; ft . detach ( mSearchFilesFragment ) ; } } else { Log . w ( LOG_TAG , "## onTabUnselected() unknown tab selected!!" ) ; } }
called when a tab exits the selected state .
