aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2014-06-01 11:03:39 -0700
committerScott Jackson <daneren2005@gmail.com>2014-06-01 11:03:39 -0700
commitce0a0e1dd68e9d1ebaae13928ddb53e4ba92bbce (patch)
treef31f31dbb07621ed13901bc4be9e3cdea715bc7e
parent203a27b168c2bacc0e3c25140242ee12a8c629aa (diff)
downloaddsub-ce0a0e1dd68e9d1ebaae13928ddb53e4ba92bbce.tar.gz
dsub-ce0a0e1dd68e9d1ebaae13928ddb53e4ba92bbce.tar.bz2
dsub-ce0a0e1dd68e9d1ebaae13928ddb53e4ba92bbce.zip
Possibly fix crash by using context.getLayoutInflater instead of fragment
-rw-r--r--src/github/daneren2005/dsub/fragments/SelectArtistFragment.java2
1 files changed, 1 insertions, 1 deletions
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<Artist> {
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);