OC-3087: (fix bug) The loading doesn't deissapear during the download process
authormasensio <masensio@solidgear.es>
Wed, 26 Feb 2014 09:28:21 +0000 (10:28 +0100)
committermasensio <masensio@solidgear.es>
Wed, 26 Feb 2014 09:28:21 +0000 (10:28 +0100)
src/com/owncloud/android/ui/activity/FileDisplayActivity.java
src/com/owncloud/android/ui/fragment/FileDetailFragment.java
src/com/owncloud/android/ui/fragment/OCFileListFragment.java

index 050f6bd..cbe261c 100644 (file)
@@ -1640,7 +1640,6 @@ OCFileListFragment.ContainerActivity, FileDetailFragment.ContainerActivity, OnNa
     }
     
     private void sendDownloadedFile(){
-        dismissLoadingDialog();
         getFileOperationsHelper().sendDownloadedFile(mWaitingToSend, this);
         mWaitingToSend = null;
     }
index 50faf04..a567c43 100644 (file)
@@ -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());
                     
index e902b05..cb37007 100644 (file)
@@ -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);