Commit 4c1904ec authored by vince-bourgmayer's avatar vince-bourgmayer

enable gzip compress for propfind

parent b5416a46
......@@ -25,6 +25,7 @@ import java.util.ListIterator;
import io.eelo.drive.database.DbHelper;
import io.eelo.drive.models.SyncedFolder;
import static io.eelo.drive.utils.AppConstants.GZIP_ENABLED;
import static org.apache.jackrabbit.webdav.DavConstants.DEPTH_1;
/**
......@@ -78,7 +79,7 @@ public class ListFileRemoteOperation extends RemoteOperation {
}
if(syncedFolder.getId() > 0){
//Create ReadRemoteOperation
LightReadFolderRemoteOperation operation = new LightReadFolderRemoteOperation(syncedFolder.getRemoteFolder(), DEPTH_1, false);
LightReadFolderRemoteOperation operation = new LightReadFolderRemoteOperation(syncedFolder.getRemoteFolder(), DEPTH_1, GZIP_ENABLED);
RemoteOperationResult result = operation.execute(ownCloudClient);
if(result.isSuccess() ){
......
......@@ -28,23 +28,6 @@ public abstract class AppConstants {
public static final String[] MEDIA_SYNCABLE_CATEGORIES = new String[]{"Images", "Movies", "Music", "Ringtones", "Documents", "Podcasts"};
public static final String[] SETTINGS_SYNCABLE_CATEGORIES = new String[] {"Rom settings"};
/*public static final int FLAG_SCANREMOTE = 1; // 0001 scan remote & settings & inactive
public static final int FLAG_SCANLOCAL = 2; // 0010 scan local & settings & inactive
//0x3 = SCANBOTH & Settings & inactive
public static final int FLAG_MEDIA_SYNCABLE = 4; // 0100
//0x5 = SCANREMOTE & Media & inactive
//0x6 = SCANLOCAL & Media & inactive
//0x7 = SCANBOTH & Media & inactive
public static final int FLAG_ACTIVE = 8; // 1000
//0x9 = 1001 : scan remote, settings and active
//0xA = 1010: active, settings and scan local
//0xB = 1011: active, scan both & settings
//0xC = 1100 : active, media, noscan
//0xD = 1101: active, media, scanRemote
//0xE = 1110: active, media, scanLocal
//0xF = 1111: active, media, scanBoth */
public static final boolean GZIP_ENABLED = true;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment