diff options
author | Scott Jackson <daneren2005@gmail.com> | 2016-02-04 18:44:44 -0800 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2016-02-04 18:44:44 -0800 |
commit | 417db6fe44925a8deb119f344f0df7d9334270fa (patch) | |
tree | 604ab3f364d485a5583499ab1ae4aefcbc82be4f /app/src/main/java/github | |
parent | fc39ef2c72abcdde0ab7a567fdfcecd04844ae35 (diff) | |
download | dsub-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/github')
-rw-r--r-- | app/src/main/java/github/daneren2005/dsub/adapter/SettingsAdapter.java | 2 |
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()); } |