コード例 #1
0
 @Override
 public void onStop() {
   if (nActions != null) {
     nActions.finish();
   }
   super.onStop();
 }
コード例 #2
0
 @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();
 }
コード例 #3
0
  @Override
  public void onActivityCreated(Bundle savedInstanceState) {

    setRetainInstance(true);
    alfSession = SessionUtils.getSession(getActivity());
    if (RepositoryVersionHelper.isAlfrescoProduct(alfSession)) {
      setActivateThumbnail(true);
    }
    super.onActivityCreated(savedInstanceState);
  }
コード例 #4
0
 @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();
   }
 }
コード例 #5
0
 public void refresh() {
   if (parentFolder == null) {
     parentFolder = SessionUtils.getSession(getActivity()).getRootFolder();
   }
   super.refresh();
 }