1
0
mirror of https://github.com/owncloud/android-library.git synced 2025-06-07 16:06:08 +00:00

Add method to know if server supports search users function

This commit is contained in:
masensio 2015-10-05 11:23:39 +02:00 committed by David A. Velasco
parent f02dffb1d3
commit c3f24e817e

View File

@ -43,6 +43,8 @@ public class OwnCloudVersion implements Comparable<OwnCloudVersion> {
public static final int MINIMUM_SERVER_VERSION_FOR_REMOTE_THUMBNAILS = 0x07080000; // 7.8.0
public static final int MINIMUM_VERSION_FOR_SEARCHING_USERS = 0x08020000; //8.2
public static final int VERSION_8 = 0x08000000; // 8.0
private static final int MAX_DOTS = 3;
@ -139,5 +141,9 @@ public class OwnCloudVersion implements Comparable<OwnCloudVersion> {
return (mVersion >= VERSION_8);
}
public boolean isSearchUsersSupported() {
return (mVersion >= MINIMUM_VERSION_FOR_SEARCHING_USERS);
}
}