Changes from comments of PR

This commit is contained in:
masensio 2013-09-24 14:54:46 +02:00
parent 4811eb4f57
commit e2e1e62e45
2 changed files with 1 additions and 25 deletions

View file

@ -450,7 +450,6 @@ public class FileDetailFragment extends FileFragment implements
mLastRemoteOperation.execute(mAccount, getSherlockActivity(), this, mHandler, getSherlockActivity());
// update ui
//boolean inDisplayActivity = getActivity() instanceof FileDisplayActivity;
((FileDisplayActivity) getActivity()).showLoadingDialog();
}
@ -465,8 +464,7 @@ public class FileDetailFragment extends FileFragment implements
true,
mStorageManager);
mLastRemoteOperation.execute(mAccount, getSherlockActivity(), this, mHandler, getSherlockActivity());
//boolean inDisplayActivity = getActivity() instanceof FileDisplayActivity;
((FileDisplayActivity) getActivity()).showLoadingDialog();
}
}
@ -759,7 +757,6 @@ public class FileDetailFragment extends FileFragment implements
newFilename,
new FileDataStorageManager(mAccount, getActivity().getContentResolver()));
mLastRemoteOperation.execute(mAccount, getSherlockActivity(), this, mHandler, getSherlockActivity());
//boolean inDisplayActivity = getActivity() instanceof FileDisplayActivity;
((FileDisplayActivity) getActivity()).showLoadingDialog();
}
}

View file

@ -241,27 +241,6 @@ public class PreviewImageActivity extends FileActivity implements FileFragment.C
finish();
}
// @Override
// protected Dialog onCreateDialog(int id) {
// Dialog dialog = null;
// switch (id) {
// case DIALOG_SHORT_WAIT: {
// ProgressDialog working_dialog = new ProgressDialog(this);
// working_dialog.setMessage(getResources().getString(
// R.string.wait_a_moment));
// working_dialog.setIndeterminate(true);
// working_dialog.setCancelable(false);
// dialog = working_dialog;
// break;
// }
// default:
// dialog = null;
// }
// return dialog;
// }
/**
* Show loading dialog
*/