aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2014-08-26 15:56:10 -0700
committerScott Jackson <daneren2005@gmail.com>2014-08-26 15:56:10 -0700
commit3bd9bc9165e8a52332ecd1ca172627281b295168 (patch)
tree27767249650dc5d718624e0064013b9047d547ba
parent65f135f3a5ac07fd5b5298b80bbdfef9d812f4b4 (diff)
downloaddsub-3bd9bc9165e8a52332ecd1ca172627281b295168.tar.gz
dsub-3bd9bc9165e8a52332ecd1ca172627281b295168.tar.bz2
dsub-3bd9bc9165e8a52332ecd1ca172627281b295168.zip
#387 Add util to check if sync is enabled for server
-rw-r--r--src/github/daneren2005/dsub/util/Util.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/github/daneren2005/dsub/util/Util.java b/src/github/daneren2005/dsub/util/Util.java
index 258e4eb8..56a66b8a 100644
--- a/src/github/daneren2005/dsub/util/Util.java
+++ b/src/github/daneren2005/dsub/util/Util.java
@@ -384,6 +384,11 @@ public final class Util {
SharedPreferences prefs = getPreferences(context);
return prefs.getBoolean(Constants.PREFERENCES_KEY_BROWSE_TAGS + instance, false);
}
+
+ public static boolean isSyncEnabled(Context context, int instance) {
+ SharedPreferences prefs = getPreferences(context);
+ return prefs.getBoolean(Constants.PREFERENCES_KEY_SERVER_SYNC + instance, true);
+ }
public static String getParentFromEntry(Context context, MusicDirectory.Entry entry) {
if(Util.isTagBrowsing(context)) {