mirror of
https://github.com/nextcloud/android.git
synced 2024-11-27 09:39:25 +03:00
OC-2822: Add 'loading' progress dialog while the share link is being created
This commit is contained in:
parent
e2af381b88
commit
44aeecb27f
3 changed files with 3 additions and 1 deletions
|
@ -1338,7 +1338,7 @@ OCFileListFragment.ContainerActivity, FileDetailFragment.ContainerActivity, OnNa
|
|||
|
||||
|
||||
private void onCreateShareOperationFinish(CreateShareOperation operation, RemoteOperationResult result) {
|
||||
|
||||
dismissLoadingDialog();
|
||||
if (result.isSuccess()) {
|
||||
refeshListOfFilesFragment();
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue