From 417db6fe44925a8deb119f344f0df7d9334270fa Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Thu, 4 Feb 2016 18:44:44 -0800 Subject: Fix crash on UserFragment on older version of Subsonic --- app/src/main/java/github/daneren2005/dsub/adapter/SettingsAdapter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/src/main/java/github') 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 { public static SettingsAdapter getSettingsAdapter(Context context, User user, ImageLoader imageLoader, boolean isEditable, OnItemClickedListener onItemClickedListener) { List headers = new ArrayList<>(); List> 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()); } -- cgit v1.2.3