Browse Source

OC-3097: (fix bug) When the connection is lost during a download, app thinks that the download is finished

masensio 11 years ago
parent
commit
77b7f99d66

+ 1 - 1
owncloud-android-library

@@ -1 +1 @@
-Subproject commit cd4414a7bda686c84e1ca75dd10bcbf9b3f57f83
+Subproject commit fb267a0564392adf4938b8f8824e5c89c22776a0

+ 1 - 1
src/com/owncloud/android/ui/activity/FileDisplayActivity.java

@@ -1035,7 +1035,7 @@ OCFileListFragment.ContainerActivity, FileDetailFragment.ContainerActivity, OnNa
 
 
             if (mWaitingToSend != null) {
             if (mWaitingToSend != null) {
                 mWaitingToSend = getStorageManager().getFileByPath(mWaitingToSend.getRemotePath()); // Update the file to send
                 mWaitingToSend = getStorageManager().getFileByPath(mWaitingToSend.getRemotePath()); // Update the file to send
-                if (mWaitingToSend.isDown() && mWaitingToSend.getStoragePath()!=null) {
+                if (mWaitingToSend.isDown()) { 
                     sendDownloadedFile();
                     sendDownloadedFile();
                 }
                 }
             }
             }