@Override
 public void onStop() {
   if (nActions != null) {
     nActions.finish();
   }
   super.onStop();
 }
 @Override
 public void onPause() {
   getActivity().invalidateOptionsMenu();
   getActivity().setTitle(R.string.app_name);
   getActivity().getActionBar().setDisplayShowTitleEnabled(true);
   getActivity().getActionBar().setNavigationMode(ActionBar.NAVIGATION_MODE_STANDARD);
   super.onPause();
 }
  @Override
  public void onActivityCreated(Bundle savedInstanceState) {

    setRetainInstance(true);
    alfSession = SessionUtils.getSession(getActivity());
    if (RepositoryVersionHelper.isAlfrescoProduct(alfSession)) {
      setActivateThumbnail(true);
    }
    super.onActivityCreated(savedInstanceState);
  }
 @Override
 public void onResume() {
   super.onResume();
   if (tmpFile != null) {
     importFolder = ((MainActivity) getActivity()).getImportParent();
     createFile(tmpFile);
   }
   getActivity().getActionBar().setDisplayShowTitleEnabled(false);
   getActivity().setTitle(R.string.app_name);
   if (shortcutAlreadyVisible) {
     displayPathShortcut();
   }
 }
 public void refresh() {
   if (parentFolder == null) {
     parentFolder = SessionUtils.getSession(getActivity()).getRootFolder();
   }
   super.refresh();
 }