aboutsummaryrefslogtreecommitdiff
path: root/subsonic-android/src
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2013-05-05 15:51:44 -0700
committerScott Jackson <daneren2005@gmail.com>2013-05-05 15:51:44 -0700
commit18b801bb82c448d73ab6402e8ccce92b77ff652a (patch)
tree4ddb62137bd1be53752718a691181cc2e1437fa8 /subsonic-android/src
parentccbf4a2bb324b7f354ba39519e6a7bdad8d56024 (diff)
downloaddsub-18b801bb82c448d73ab6402e8ccce92b77ff652a.tar.gz
dsub-18b801bb82c448d73ab6402e8ccce92b77ff652a.tar.bz2
dsub-18b801bb82c448d73ab6402e8ccce92b77ff652a.zip
Better method of handling artist folder button in header
Diffstat (limited to 'subsonic-android/src')
-rw-r--r--subsonic-android/src/github/daneren2005/dsub/fragments/SelectArtistFragment.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/subsonic-android/src/github/daneren2005/dsub/fragments/SelectArtistFragment.java b/subsonic-android/src/github/daneren2005/dsub/fragments/SelectArtistFragment.java
index 35daaa83..1ed5bb43 100644
--- a/subsonic-android/src/github/daneren2005/dsub/fragments/SelectArtistFragment.java
+++ b/subsonic-android/src/github/daneren2005/dsub/fragments/SelectArtistFragment.java
@@ -51,8 +51,10 @@ public class SelectArtistFragment extends SubsonicFragment implements AdapterVie
artistList = (ListView) rootView.findViewById(R.id.select_artist_list);
artistList.setOnItemClickListener(this);
- folderButton = rootView.findViewById(R.id.select_artist_folder);
+ folderButton = inflater.inflate(R.layout.select_artist_header, artistList, false);
folderName = (TextView) folderButton.findViewById(R.id.select_artist_folder_2);
+ artistList.addHeaderView(folderButton);
+ folderButton = folderButton.findViewById(R.id.select_artist_folder);
registerForContextMenu(artistList);
invalidated = true;