diff options
author | Scott Jackson <daneren2005@gmail.com> | 2014-09-23 15:21:14 -0700 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2014-09-23 15:21:14 -0700 |
commit | 62bcf62dfbb5843f03ae74e4f38a9065c9bb0fd5 (patch) | |
tree | 646a83c18e489998c726725b41dac24c5b28de71 /src/github | |
parent | c2cf538288a28880d079f812fff9b24790ee8d94 (diff) | |
download | dsub-62bcf62dfbb5843f03ae74e4f38a9065c9bb0fd5.tar.gz dsub-62bcf62dfbb5843f03ae74e4f38a9065c9bb0fd5.tar.bz2 dsub-62bcf62dfbb5843f03ae74e4f38a9065c9bb0fd5.zip |
Add method to check if server is capable of bookmarking
Diffstat (limited to 'src/github')
-rw-r--r-- | src/github/daneren2005/dsub/domain/ServerInfo.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/github/daneren2005/dsub/domain/ServerInfo.java b/src/github/daneren2005/dsub/domain/ServerInfo.java index 4dcc8074..9e1333da 100644 --- a/src/github/daneren2005/dsub/domain/ServerInfo.java +++ b/src/github/daneren2005/dsub/domain/ServerInfo.java @@ -187,4 +187,8 @@ public class ServerInfo implements Serializable { private static String getCacheName(Context context, int instance) { return "server-" + Util.getRestUrl(context, null, instance, false).hashCode() + ".ser"; } + + public static boolean canBookmark(Context context) { + return checkServerVersion(context, "1.9"); + } } |