From ce0a0e1dd68e9d1ebaae13928ddb53e4ba92bbce Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Sun, 1 Jun 2014 11:03:39 -0700 Subject: Possibly fix crash by using context.getLayoutInflater instead of fragment --- src/github/daneren2005/dsub/fragments/SelectArtistFragment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/github/daneren2005/dsub/fragments/SelectArtistFragment.java b/src/github/daneren2005/dsub/fragments/SelectArtistFragment.java index 5952eefd..d1de8e27 100644 --- a/src/github/daneren2005/dsub/fragments/SelectArtistFragment.java +++ b/src/github/daneren2005/dsub/fragments/SelectArtistFragment.java @@ -209,7 +209,7 @@ public class SelectArtistFragment extends SelectListFragment { private void createMusicFolderButton() { if(folderButton == null) { - folderButtonParent = getLayoutInflater(null).inflate(R.layout.select_artist_header, listView, false); + folderButtonParent = context.getLayoutInflater().inflate(R.layout.select_artist_header, listView, false); folderName = (TextView) folderButtonParent.findViewById(R.id.select_artist_folder_2); listView.addHeaderView(folderButtonParent); folderButton = folderButtonParent.findViewById(R.id.select_artist_folder); -- cgit v1.2.3