aboutsummaryrefslogtreecommitdiff
path: root/src/github
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2014-09-23 15:21:14 -0700
committerScott Jackson <daneren2005@gmail.com>2014-09-23 15:21:14 -0700
commit62bcf62dfbb5843f03ae74e4f38a9065c9bb0fd5 (patch)
tree646a83c18e489998c726725b41dac24c5b28de71 /src/github
parentc2cf538288a28880d079f812fff9b24790ee8d94 (diff)
downloaddsub-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.java4
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");
+ }
}