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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user