aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/java
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2016-02-04 18:44:44 -0800
committerScott Jackson <daneren2005@gmail.com>2016-02-04 18:44:44 -0800
commit417db6fe44925a8deb119f344f0df7d9334270fa (patch)
tree604ab3f364d485a5583499ab1ae4aefcbc82be4f /app/src/main/java
parentfc39ef2c72abcdde0ab7a567fdfcecd04844ae35 (diff)
downloaddsub-417db6fe44925a8deb119f344f0df7d9334270fa.tar.gz
dsub-417db6fe44925a8deb119f344f0df7d9334270fa.tar.bz2
dsub-417db6fe44925a8deb119f344f0df7d9334270fa.zip
Fix crash on UserFragment on older version of Subsonic
Diffstat (limited to 'app/src/main/java')
-rw-r--r--app/src/main/java/github/daneren2005/dsub/adapter/SettingsAdapter.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/main/java/github/daneren2005/dsub/adapter/SettingsAdapter.java b/app/src/main/java/github/daneren2005/dsub/adapter/SettingsAdapter.java
index ba4b11fc..51d08a99 100644
--- a/app/src/main/java/github/daneren2005/dsub/adapter/SettingsAdapter.java
+++ b/app/src/main/java/github/daneren2005/dsub/adapter/SettingsAdapter.java
@@ -142,10 +142,10 @@ public class SettingsAdapter extends SectionAdapter<Setting> {
public static SettingsAdapter getSettingsAdapter(Context context, User user, ImageLoader imageLoader, boolean isEditable, OnItemClickedListener<Setting> onItemClickedListener) {
List<String> headers = new ArrayList<>();
List<List<User.Setting>> settingsSections = new ArrayList<>();
+ headers.add(context.getResources().getString(R.string.admin_permissions));
settingsSections.add(user.getSettings());
if(user.getMusicFolderSettings() != null) {
- headers.add(context.getResources().getString(R.string.admin_permissions));
headers.add(context.getResources().getString(R.string.admin_musicFolders));
settingsSections.add(user.getMusicFolderSettings());
}