AndyScherzinger 6 سال پیش
والد
کامیت
b07d632b9b
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      src/main/java/com/owncloud/android/operations/UploadFileOperation.java

+ 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