aboutsummaryrefslogtreecommitdiff
path: root/src/github
diff options
context:
space:
mode:
authordaneren2005 <daneren2005@gmail.com>2014-07-01 11:31:30 -0700
committerdaneren2005 <daneren2005@gmail.com>2014-07-01 11:31:30 -0700
commit72e6f108d614f8e053582d4144c75494dbc1383e (patch)
tree04a54fd1e1d1c22a464d4b4dded3e3b1b5b71a07 /src/github
parent03d752e2f9551d02080b6680a4ac291a3e11cef7 (diff)
downloaddsub-72e6f108d614f8e053582d4144c75494dbc1383e.tar.gz
dsub-72e6f108d614f8e053582d4144c75494dbc1383e.tar.bz2
dsub-72e6f108d614f8e053582d4144c75494dbc1383e.zip
Use the User Constant
Diffstat (limited to 'src/github')
-rw-r--r--src/github/daneren2005/dsub/util/Util.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/github/daneren2005/dsub/util/Util.java b/src/github/daneren2005/dsub/util/Util.java
index 72fc8511..02cb8eb9 100644
--- a/src/github/daneren2005/dsub/util/Util.java
+++ b/src/github/daneren2005/dsub/util/Util.java
@@ -8,7 +8,6 @@
Subsonic is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
@@ -62,6 +61,7 @@ import github.daneren2005.dsub.activity.SubsonicFragmentActivity;
import github.daneren2005.dsub.domain.MusicDirectory;
import github.daneren2005.dsub.domain.PlayerState;
import github.daneren2005.dsub.domain.RepeatMode;
+import github.daneren2005.dsub.domain.User;
import github.daneren2005.dsub.domain.Version;
import github.daneren2005.dsub.provider.DSubWidgetProvider;
import github.daneren2005.dsub.receiver.MediaButtonIntentReceiver;
@@ -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, true) && (isOffline(context) || UserUtil.isCurrentRole("scrobblingEnabled"));
+ return prefs.getBoolean(Constants.PREFERENCES_KEY_SCROBBLE, true) && (isOffline(context) || UserUtil.isCurrentRole(User.SCROBBLING));
}
public static void setActiveServer(Context context, int instance) {