aboutsummaryrefslogtreecommitdiff
path: root/subsonic-android/src/github/daneren2005
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2013-05-14 21:20:22 -0700
committerScott Jackson <daneren2005@gmail.com>2013-05-14 21:20:22 -0700
commitfbab10eb1278f8651c080652286e895105d17d30 (patch)
tree096b54d4aa63e6cbf7c7ac2da7ff29670b2183a0 /subsonic-android/src/github/daneren2005
parenta1c400ce131a361a03584e9078001ea30e1e23af (diff)
downloaddsub-fbab10eb1278f8651c080652286e895105d17d30.tar.gz
dsub-fbab10eb1278f8651c080652286e895105d17d30.tar.bz2
dsub-fbab10eb1278f8651c080652286e895105d17d30.zip
Fix folder selection
Diffstat (limited to 'subsonic-android/src/github/daneren2005')
-rw-r--r--subsonic-android/src/github/daneren2005/dsub/fragments/SelectArtistFragment.java11
1 files changed, 6 insertions, 5 deletions
diff --git a/subsonic-android/src/github/daneren2005/dsub/fragments/SelectArtistFragment.java b/subsonic-android/src/github/daneren2005/dsub/fragments/SelectArtistFragment.java
index 50afbcc6..8485f342 100644
--- a/subsonic-android/src/github/daneren2005/dsub/fragments/SelectArtistFragment.java
+++ b/subsonic-android/src/github/daneren2005/dsub/fragments/SelectArtistFragment.java
@@ -35,6 +35,7 @@ public class SelectArtistFragment extends SubsonicFragment implements AdapterVie
private static final int MENU_GROUP_MUSIC_FOLDER = 10;
private ListView artistList;
+ private View folderButtonParent;
private View folderButton;
private TextView folderName;
private List<MusicFolder> musicFolders = null;
@@ -51,10 +52,10 @@ public class SelectArtistFragment extends SubsonicFragment implements AdapterVie
artistList = (ListView) rootView.findViewById(R.id.select_artist_list);
artistList.setOnItemClickListener(this);
- 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);
+ folderButtonParent = inflater.inflate(R.layout.select_artist_header, artistList, false);
+ folderName = (TextView) folderButtonParent.findViewById(R.id.select_artist_folder_2);
+ artistList.addHeaderView(folderButtonParent);
+ folderButton = folderButtonParent.findViewById(R.id.select_artist_folder);
registerForContextMenu(artistList);
invalidated = true;
@@ -130,7 +131,7 @@ public class SelectArtistFragment extends SubsonicFragment implements AdapterVie
@Override
public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
- if (view == folderButton) {
+ if (view == folderButtonParent) {
selectFolder();
} else {
Artist artist = (Artist) parent.getItemAtPosition(position);