mirror of
https://github.com/nextcloud/android.git
synced 2024-11-26 23:28:42 +03:00
Changes from comments of PR
This commit is contained in:
parent
4811eb4f57
commit
e2e1e62e45
2 changed files with 1 additions and 25 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue