Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/android-library.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'library/src/main/java/com/owncloud/android/lib/resources/files/NcSearchMethod.java')
-rw-r--r--library/src/main/java/com/owncloud/android/lib/resources/files/NcSearchMethod.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/library/src/main/java/com/owncloud/android/lib/resources/files/NcSearchMethod.java b/library/src/main/java/com/owncloud/android/lib/resources/files/NcSearchMethod.java
index 4c32bca2..dd52c70f 100644
--- a/library/src/main/java/com/owncloud/android/lib/resources/files/NcSearchMethod.java
+++ b/library/src/main/java/com/owncloud/android/lib/resources/files/NcSearchMethod.java
@@ -26,8 +26,6 @@
*/
package com.owncloud.android.lib.resources.files;
-import static com.owncloud.android.lib.common.network.WebdavEntry.NAMESPACE_OC;
-
import com.owncloud.android.lib.resources.status.NextcloudVersion;
import com.owncloud.android.lib.resources.status.OCCapability;
@@ -47,6 +45,8 @@ import java.util.TimeZone;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationException;
+import static com.owncloud.android.lib.common.network.WebdavEntry.NAMESPACE_OC;
+
public class NcSearchMethod extends org.apache.jackrabbit.webdav.client.methods.SearchMethod {
private static final String HEADER_CONTENT_TYPE_VALUE = "text/xml";
private static final String DAV_NAMESPACE = "DAV:";
@@ -126,7 +126,6 @@ public class NcSearchMethod extends org.apache.jackrabbit.webdav.client.methods.
selectPropsElement.appendChild(creationDate);
selectPropsElement.appendChild(quotaUsedElement);
selectPropsElement.appendChild(quotaAvailableElement);
- selectPropsElement.appendChild(permissionsElement);
selectPropsElement.appendChild(sizeElement);
}
if (searchType == SearchRemoteOperation.SearchType.GALLERY_SEARCH) {
@@ -139,6 +138,7 @@ public class NcSearchMethod extends org.apache.jackrabbit.webdav.client.methods.
selectPropsElement.appendChild(etagElement);
selectPropsElement.appendChild(remoteIdElement);
selectPropsElement.appendChild(favoriteElement);
+ selectPropsElement.appendChild(permissionsElement);
Element fromElement = query.createElementNS(DAV_NAMESPACE, "d:from");
Element scopeElement = query.createElementNS(DAV_NAMESPACE, "d:scope");