diff options
author | daneren2005 <daneren2005@gmail.com> | 2014-06-23 15:31:02 -0700 |
---|---|---|
committer | daneren2005 <daneren2005@gmail.com> | 2014-06-23 15:31:02 -0700 |
commit | eb268f0bd20fc6c41f3685628bfe9d250a5ebdab (patch) | |
tree | 9e091f0cf00a2fd680af3db27988951b569cbe29 /src | |
parent | 9a47194e4cf61773c48b7d6145025c03f6a21da3 (diff) | |
download | dsub-eb268f0bd20fc6c41f3685628bfe9d250a5ebdab.tar.gz dsub-eb268f0bd20fc6c41f3685628bfe9d250a5ebdab.tar.bz2 dsub-eb268f0bd20fc6c41f3685628bfe9d250a5ebdab.zip |
#305 Don't scrobble if use doesn't have permissions
Diffstat (limited to 'src')
-rw-r--r-- | src/github/daneren2005/dsub/util/Util.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/github/daneren2005/dsub/util/Util.java b/src/github/daneren2005/dsub/util/Util.java index 5e93ee55..72fc8511 100644 --- a/src/github/daneren2005/dsub/util/Util.java +++ b/src/github/daneren2005/dsub/util/Util.java @@ -154,7 +154,7 @@ public final class Util { public static boolean isScrobblingEnabled(Context context) { SharedPreferences prefs = getPreferences(context); - return prefs.getBoolean(Constants.PREFERENCES_KEY_SCROBBLE, false); + return prefs.getBoolean(Constants.PREFERENCES_KEY_SCROBBLE, true) && (isOffline(context) || UserUtil.isCurrentRole("scrobblingEnabled")); } public static void setActiveServer(Context context, int instance) { |