From: masensio Date: Wed, 26 Feb 2014 09:28:21 +0000 (+0100) Subject: OC-3087: (fix bug) The loading doesn't deissapear during the download process X-Git-Tag: oc-android-1.5.5~22^2~11 X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/commitdiff_plain/21a65603751342252583090c121c54c2efda082c?ds=inline;hp=--cc OC-3087: (fix bug) The loading doesn't deissapear during the download process --- 21a65603751342252583090c121c54c2efda082c diff --git a/src/com/owncloud/android/ui/activity/FileDisplayActivity.java b/src/com/owncloud/android/ui/activity/FileDisplayActivity.java index 050f6bd3..cbe261cf 100644 --- a/src/com/owncloud/android/ui/activity/FileDisplayActivity.java +++ b/src/com/owncloud/android/ui/activity/FileDisplayActivity.java @@ -1640,7 +1640,6 @@ OCFileListFragment.ContainerActivity, FileDetailFragment.ContainerActivity, OnNa } private void sendDownloadedFile(){ - dismissLoadingDialog(); getFileOperationsHelper().sendDownloadedFile(mWaitingToSend, this); mWaitingToSend = null; } diff --git a/src/com/owncloud/android/ui/fragment/FileDetailFragment.java b/src/com/owncloud/android/ui/fragment/FileDetailFragment.java index 50faf04f..a567c43a 100644 --- a/src/com/owncloud/android/ui/fragment/FileDetailFragment.java +++ b/src/com/owncloud/android/ui/fragment/FileDetailFragment.java @@ -391,7 +391,6 @@ public class FileDetailFragment extends FileFragment implements FileDisplayActivity activity = (FileDisplayActivity) getSherlockActivity(); // Obtain the file if (!getFile().isDown()) { // Download the file - //activity.showLoadingDialog(); Log_OC.d(TAG, getFile().getRemotePath() + " : File must be downloaded"); activity.startDownloadForSending(getFile()); diff --git a/src/com/owncloud/android/ui/fragment/OCFileListFragment.java b/src/com/owncloud/android/ui/fragment/OCFileListFragment.java index e902b05f..cb370070 100644 --- a/src/com/owncloud/android/ui/fragment/OCFileListFragment.java +++ b/src/com/owncloud/android/ui/fragment/OCFileListFragment.java @@ -368,7 +368,6 @@ public class OCFileListFragment extends ExtendedListFragment implements EditName case R.id.action_send_file: { // Obtain the file if (!mTargetFile.isDown()) { // Download the file - ((FileDisplayActivity) getSherlockActivity()).showLoadingDialog(); Log_OC.d(TAG, mTargetFile.getRemotePath() + " : File must be downloaded"); mContainerActivity.startDownloadForSending(mTargetFile);