1
0
mirror of https://github.com/owncloud/android-library.git synced 2026-08-19 20:32:57 +00:00

Add method to OwnCloudVersion to check if not-reshareable federated shares are supported

This commit is contained in:
David A. Velasco
2016-07-26 12:53:59 +02:00
parent 0ce18350cf
commit e4fc7ea25b
2 changed files with 28 additions and 15 deletions
@@ -50,9 +50,11 @@ public class OwnCloudVersion implements Comparable<OwnCloudVersion> {
public static final int VERSION_8 = 0x08000000; // 8.0
public static final int MINIMUM_VERSION_CAPABILITIES_API = 0x08010000; // 8.1
private static final int MINIMUM_VERSION_WITH_NOT_RESHAREABLE_FEDERATED = 0x09010000; // 9.1
private static final int MAX_DOTS = 3;
// format is in version
// 0xAABBCCDD
// for version AA.BB.CC.DD
@@ -156,4 +158,8 @@ public class OwnCloudVersion implements Comparable<OwnCloudVersion> {
public boolean isVersionWithCapabilitiesAPI(){
return (mVersion>= MINIMUM_VERSION_CAPABILITIES_API);
}
public boolean isNotReshareableFederatedSupported() {
return (mVersion >= MINIMUM_VERSION_WITH_NOT_RESHAREABLE_FEDERATED);
}
}