AndyScherzinger пре 6 година
родитељ
комит
b07d632b9b

+ 1 - 1
src/main/java/com/owncloud/android/operations/UploadFileOperation.java

@@ -1166,7 +1166,7 @@ public class UploadFileOperation extends SyncOperation {
 
         RemoteOperationResult result = null;
 
-        if (FileStorageUtils.getUsableSpace(mAccount.name) < sourceFile.length()) {
+        if (FileStorageUtils.getUsableSpace() < sourceFile.length()) {
             result = new RemoteOperationResult(ResultCode.LOCAL_STORAGE_FULL);
             return result;  // error condition when the file should be copied