OC-2822: Add 'loading' progress dialog while the share link is being created

This commit is contained in:
masensio 2014-02-05 09:13:31 +01:00
parent e2af381b88
commit 44aeecb27f
3 changed files with 3 additions and 1 deletions

View file

@ -1338,7 +1338,7 @@ OCFileListFragment.ContainerActivity, FileDetailFragment.ContainerActivity, OnNa
private void onCreateShareOperationFinish(CreateShareOperation operation, RemoteOperationResult result) {
dismissLoadingDialog();
if (result.isSuccess()) {
refeshListOfFilesFragment();

View file

@ -337,6 +337,7 @@ public class FileDetailFragment extends FileFragment implements
switch (item.getItemId()) {
case R.id.action_share_file: {
FileDisplayActivity activity = (FileDisplayActivity) getSherlockActivity();
activity.showLoadingDialog();
activity.getFileOperationsHelper().shareFileWithLink(getFile(), activity);
return true;
}

View file

@ -285,6 +285,7 @@ public class OCFileListFragment extends ExtendedListFragment implements EditName
switch (item.getItemId()) {
case R.id.action_share_file: {
FileDisplayActivity activity = (FileDisplayActivity) getSherlockActivity();
activity.showLoadingDialog();
activity.getFileOperationsHelper().shareFileWithLink(mTargetFile, activity);
return true;
}