Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c5f2c70a authored by Vincent Bourgmayer's avatar Vincent Bourgmayer
Browse files

fix parsing for user quota

parent 56f10757
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -85,13 +85,13 @@ public class UploadFileOperation extends RemoteOperation {
            return new RemoteOperationResult(ResultCode.SYNC_CONFLICT);
        }

        Double relativeQuotaBeforeFileUpload = 0.0;
        Float relativeQuotaBeforeFileUpload = 0.0f;
        if (this.availableQuota == -1) {
            RemoteOperationResult checkQuotaResult = checkAvailableSpace(client, file.length());
            if (checkQuotaResult.getCode() != ResultCode.OK) {
                return new RemoteOperationResult(checkQuotaResult.getCode());
            }else{
                relativeQuotaBeforeFileUpload = (Double) checkQuotaResult.getSingleData();
                relativeQuotaBeforeFileUpload = ((Double) checkQuotaResult.getSingleData()).floatValue();
            }
        }