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

Unverified Commit 8cf09590 authored by Andy Scherzinger's avatar Andy Scherzinger Committed by GitHub
Browse files

Merge pull request #112 from nextcloud/noQuotaFetch

We do not use quota right now, so do not fetch it
parents 42423b08 adbca2be
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -99,8 +99,6 @@ public class WebdavUtils {
        propSet.add(DavPropertyName.GETLASTMODIFIED);
        propSet.add(DavPropertyName.CREATIONDATE);
        propSet.add(DavPropertyName.GETETAG);
        propSet.add(DavPropertyName.create(WebdavEntry.PROPERTY_QUOTA_USED_BYTES));
        propSet.add(DavPropertyName.create(WebdavEntry.PROPERTY_QUOTA_AVAILABLE_BYTES));
        propSet.add(WebdavEntry.EXTENDED_PROPERTY_NAME_PERMISSIONS, Namespace.getNamespace(WebdavEntry.NAMESPACE_OC));
        propSet.add(WebdavEntry.EXTENDED_PROPERTY_NAME_REMOTE_ID, Namespace.getNamespace(WebdavEntry.NAMESPACE_OC));
        propSet.add(WebdavEntry.EXTENDED_PROPERTY_NAME_SIZE, Namespace.getNamespace(WebdavEntry.NAMESPACE_OC));
+0 −2
Original line number Diff line number Diff line
@@ -94,8 +94,6 @@ public class WebDavFileUtils {
        file.setPermissions(we.permissions());
        file.setRemoteId(we.remoteId());
        file.setSize(we.size());
        file.setQuotaUsedBytes(we.quotaUsedBytes());
        file.setQuotaAvailableBytes(we.quotaAvailableBytes());
        file.setFavorite(we.isFavorite());
        return file;
    }
+0 −2
Original line number Diff line number Diff line
@@ -170,8 +170,6 @@ public class ReadRemoteFolderOperation extends RemoteOperation {
        file.setPermissions(we.permissions());
        file.setRemoteId(we.remoteId());
        file.setSize(we.size());
        file.setQuotaUsedBytes(we.quotaUsedBytes());
        file.setQuotaAvailableBytes(we.quotaAvailableBytes());
        file.setFavorite(we.isFavorite());
        file.setIsEncrypted(we.isEncrypted());
        return file;
+0 −19
Original line number Diff line number Diff line
@@ -30,7 +30,6 @@ import android.os.Parcelable;
import com.owncloud.android.lib.common.network.WebdavEntry;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * Contains the data of a Remote File from a WebDavEntry.
@@ -53,8 +52,6 @@ public class RemoteFile implements Parcelable, Serializable {
    private String mPermissions;
    private String mRemoteId;
    private long mSize;
    private BigDecimal mQuotaUsedBytes;
    private BigDecimal mQuotaAvailableBytes;
    private boolean mIsFavorite;
    private boolean mIsEncrypted;

@@ -150,14 +147,6 @@ public class RemoteFile implements Parcelable, Serializable {
        mSize = size;
    }

    public void setQuotaUsedBytes(BigDecimal quotaUsedBytes) {
        mQuotaUsedBytes = quotaUsedBytes;
    }

    public void setQuotaAvailableBytes(BigDecimal quotaAvailableBytes) {
        mQuotaAvailableBytes = quotaAvailableBytes;
    }

    public RemoteFile() {
        resetData();
    }
@@ -187,8 +176,6 @@ public class RemoteFile implements Parcelable, Serializable {
        this.setPermissions(we.permissions());
        this.setRemoteId(we.remoteId());
        this.setSize(we.size());
        this.setQuotaUsedBytes(we.quotaUsedBytes());
        this.setQuotaAvailableBytes(we.quotaAvailableBytes());
        this.setFavorite(we.isFavorite());
    }

@@ -205,8 +192,6 @@ public class RemoteFile implements Parcelable, Serializable {
        mPermissions = null;
        mRemoteId = null;
        mSize = 0;
        mQuotaUsedBytes = null;
        mQuotaAvailableBytes = null;
        mIsFavorite = false;
        mIsEncrypted = false;
    }
@@ -247,8 +232,6 @@ public class RemoteFile implements Parcelable, Serializable {
        mPermissions = source.readString();
        mRemoteId = source.readString();
        mSize = source.readLong();
        mQuotaUsedBytes = (BigDecimal) source.readSerializable();
        mQuotaAvailableBytes = (BigDecimal) source.readSerializable();
        mIsFavorite = Boolean.parseBoolean(source.readString());
        mIsEncrypted = Boolean.parseBoolean(source.readString());
    }
@@ -269,8 +252,6 @@ public class RemoteFile implements Parcelable, Serializable {
        dest.writeString(mPermissions);
        dest.writeString(mRemoteId);
        dest.writeLong(mSize);
        dest.writeSerializable(mQuotaUsedBytes);
        dest.writeSerializable(mQuotaAvailableBytes);
        dest.writeString(Boolean.toString(mIsFavorite));
        dest.writeString(Boolean.toString(mIsEncrypted));
    }