diff options
author | Scott Jackson <daneren2005@gmail.com> | 2014-06-01 11:03:39 -0700 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2014-06-01 11:03:39 -0700 |
commit | ce0a0e1dd68e9d1ebaae13928ddb53e4ba92bbce (patch) | |
tree | f31f31dbb07621ed13901bc4be9e3cdea715bc7e /src/github | |
parent | 203a27b168c2bacc0e3c25140242ee12a8c629aa (diff) | |
download | dsub-ce0a0e1dd68e9d1ebaae13928ddb53e4ba92bbce.tar.gz dsub-ce0a0e1dd68e9d1ebaae13928ddb53e4ba92bbce.tar.bz2 dsub-ce0a0e1dd68e9d1ebaae13928ddb53e4ba92bbce.zip |
Possibly fix crash by using context.getLayoutInflater instead of fragment
Diffstat (limited to 'src/github')
-rw-r--r-- | src/github/daneren2005/dsub/fragments/SelectArtistFragment.java | 2 |
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);
|