aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/github/daneren2005/dsub/domain/User.java3
-rw-r--r--src/github/daneren2005/dsub/view/SettingView.java7
2 files changed, 6 insertions, 4 deletions
diff --git a/src/github/daneren2005/dsub/domain/User.java b/src/github/daneren2005/dsub/domain/User.java
index 052985b3..f04b3d94 100644
--- a/src/github/daneren2005/dsub/domain/User.java
+++ b/src/github/daneren2005/dsub/domain/User.java
@@ -34,15 +34,14 @@ public class User implements Serializable {
public static final List<String> ROLES = new ArrayList<String>();
static {
- ROLES.add(scrobbling);
ROLES.add(ADMIN);
ROLES.add(SETTINGS);
+ ROLES.add(STREAM);
ROLES.add(DOWNLOAD);
ROLES.add(UPLOAD);
ROLES.add(COVERART);
ROLES.add(COMMENT);
ROLES.add(PODCAST);
- ROLES.add(STREAM);
ROLES.add(JUKEBOX);
ROLES.add(SHARE);
}
diff --git a/src/github/daneren2005/dsub/view/SettingView.java b/src/github/daneren2005/dsub/view/SettingView.java
index 8f265f0f..70fb4715 100644
--- a/src/github/daneren2005/dsub/view/SettingView.java
+++ b/src/github/daneren2005/dsub/view/SettingView.java
@@ -20,6 +20,9 @@ import android.view.LayoutInflater;
import android.view.View;
import android.widget.CheckedTextView;
+import github.daneren2005.dsub.R;
+import github.daneren2005.dsub.domain.User;
+
import static github.daneren2005.dsub.domain.User.Setting;
public class SettingView extends UpdateView {
@@ -46,7 +49,7 @@ public class SettingView extends UpdateView {
int res = -1;
if(User.SCROBBLING.equals(name)) {
- res = R.string.scrobblingEnabled;
+ res = R.string.admin_scrobblingEnabled;
} else if(User.ADMIN.equals(name)) {
res = R.string.admin_role_admin;
} else if(User.SETTINGS.equals(name)) {
@@ -69,7 +72,7 @@ public class SettingView extends UpdateView {
res = R.string.admin_role_share;
} else {
// Last resort to display the raw value
- view.setText(name;
+ view.setText(name);
}
if(res != -1) {