Loading src/com/owncloud/android/lib/resources/files/SearchOperation.java +10 −4 Original line number Diff line number Diff line Loading @@ -232,6 +232,7 @@ public class SearchOperation extends RemoteOperation { Text literalTextElement = null; Element imageLikeElement = null; Element videoLikeElement = null; if (searchType != SearchType.GALLERY_SEARCH) { propElement = query.createElementNS(DAV_NAMESPACE, "d:prop"); queryElement = null; Loading Loading @@ -269,20 +270,25 @@ public class SearchOperation extends RemoteOperation { imageLikeElement = query.createElementNS(DAV_NAMESPACE, "d:like"); Element imagePropElement = query.createElementNS(DAV_NAMESPACE, "d:prop"); Element imageQueryElement = query.createElementNS(DAV_NAMESPACE, "d:getcontenttype"); Element imageLiteralElement = query.createElementNS(DAV_NAMESPACE, "d:literal"); Text imageLiteralTextElement = query.createTextNode("image/%"); videoLikeElement = query.createElementNS(DAV_NAMESPACE, "d:like"); Element videoPropElement = query.createElementNS(DAV_NAMESPACE, "d:prop"); Element videoQueryElement = query.createElementNS(DAV_NAMESPACE, "d:getcontenttype"); Element videoLiteralElement = query.createElementNS(DAV_NAMESPACE, "d:literal"); Text videoLiteralTextElement = query.createTextNode("video/%"); videoLiteralElement.appendChild(videoLiteralTextElement); imageLiteralElement.appendChild(imageLiteralTextElement); videoPropElement.appendChild(videoQueryElement); videoLikeElement.appendChild(videoPropElement); videoLikeElement.appendChild(videoLiteralTextElement); videoLikeElement.appendChild(videoLiteralElement); imagePropElement.appendChild(imageQueryElement); imageLikeElement.appendChild(imagePropElement); imageLikeElement.appendChild(imageLiteralTextElement); imageLikeElement.appendChild(imageLiteralElement); } Loading Loading @@ -330,7 +336,7 @@ public class SearchOperation extends RemoteOperation { literalElement.appendChild(literalTextElement); } else { equalsElement.appendChild(imageLikeElement); //equalsElement.appendChild(videoLikeElement); equalsElement.appendChild(videoLikeElement); } basicSearchElement.appendChild(orderByElement); Loading Loading
src/com/owncloud/android/lib/resources/files/SearchOperation.java +10 −4 Original line number Diff line number Diff line Loading @@ -232,6 +232,7 @@ public class SearchOperation extends RemoteOperation { Text literalTextElement = null; Element imageLikeElement = null; Element videoLikeElement = null; if (searchType != SearchType.GALLERY_SEARCH) { propElement = query.createElementNS(DAV_NAMESPACE, "d:prop"); queryElement = null; Loading Loading @@ -269,20 +270,25 @@ public class SearchOperation extends RemoteOperation { imageLikeElement = query.createElementNS(DAV_NAMESPACE, "d:like"); Element imagePropElement = query.createElementNS(DAV_NAMESPACE, "d:prop"); Element imageQueryElement = query.createElementNS(DAV_NAMESPACE, "d:getcontenttype"); Element imageLiteralElement = query.createElementNS(DAV_NAMESPACE, "d:literal"); Text imageLiteralTextElement = query.createTextNode("image/%"); videoLikeElement = query.createElementNS(DAV_NAMESPACE, "d:like"); Element videoPropElement = query.createElementNS(DAV_NAMESPACE, "d:prop"); Element videoQueryElement = query.createElementNS(DAV_NAMESPACE, "d:getcontenttype"); Element videoLiteralElement = query.createElementNS(DAV_NAMESPACE, "d:literal"); Text videoLiteralTextElement = query.createTextNode("video/%"); videoLiteralElement.appendChild(videoLiteralTextElement); imageLiteralElement.appendChild(imageLiteralTextElement); videoPropElement.appendChild(videoQueryElement); videoLikeElement.appendChild(videoPropElement); videoLikeElement.appendChild(videoLiteralTextElement); videoLikeElement.appendChild(videoLiteralElement); imagePropElement.appendChild(imageQueryElement); imageLikeElement.appendChild(imagePropElement); imageLikeElement.appendChild(imageLiteralTextElement); imageLikeElement.appendChild(imageLiteralElement); } Loading Loading @@ -330,7 +336,7 @@ public class SearchOperation extends RemoteOperation { literalElement.appendChild(literalTextElement); } else { equalsElement.appendChild(imageLikeElement); //equalsElement.appendChild(videoLikeElement); equalsElement.appendChild(videoLikeElement); } basicSearchElement.appendChild(orderByElement); Loading