Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bd2a8a00 authored by Mario Đanić's avatar Mario Đanić Committed by GitHub
Browse files

Merge pull request #66 from nextcloud/webLogin

Set minimum version for weblogin
parents 8c20873b 3949cad6
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -60,6 +60,8 @@ public class OwnCloudVersion implements Comparable<OwnCloudVersion> {

    public static final int MINIMUM_VERSION_FOR_SEARCH_API = 0x0C000000;

    public static final int MINIMUM_VERSION_FOR_WEB_LOGIN = 0x0C000000;

    private static final int MAX_DOTS = 3;

    // format is in version
@@ -177,4 +179,7 @@ public class OwnCloudVersion implements Comparable<OwnCloudVersion> {
        return (mVersion >= MINIMUM_VERSION_FOR_SEARCH_API);
    }

    public boolean isWebLoginSupported() {
        return mVersion >= MINIMUM_VERSION_FOR_WEB_LOGIN;
    }
}