aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2014-10-03 15:19:19 -0700
committerScott Jackson <daneren2005@gmail.com>2014-10-03 15:19:19 -0700
commitb798b02d91e42ee449a4f635f1a5598a61f15ab7 (patch)
tree91ccdab4eae57437e710a806ea232239c3aed43e /src
parenta3057042bde71874de8e4a59f802e6127da6cb40 (diff)
downloaddsub-b798b02d91e42ee449a4f635f1a5598a61f15ab7.tar.gz
dsub-b798b02d91e42ee449a4f635f1a5598a61f15ab7.tar.bz2
dsub-b798b02d91e42ee449a4f635f1a5598a61f15ab7.zip
Forgot to add artist to deletion criteria
Diffstat (limited to 'src')
-rw-r--r--src/github/daneren2005/dsub/fragments/SubsonicFragment.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/github/daneren2005/dsub/fragments/SubsonicFragment.java b/src/github/daneren2005/dsub/fragments/SubsonicFragment.java
index e6443aeb..2b9767c2 100644
--- a/src/github/daneren2005/dsub/fragments/SubsonicFragment.java
+++ b/src/github/daneren2005/dsub/fragments/SubsonicFragment.java
@@ -290,19 +290,24 @@ public class SubsonicFragment extends Fragment implements SwipeRefreshLayout.OnR
else if(info.targetView instanceof AlbumCell || info.targetView instanceof AlbumView
|| info.targetView instanceof ArtistView || info.targetView instanceof ArtistEntryView) {
File folder;
+ int id;
if(info.targetView instanceof AlbumCell) {
folder = ((AlbumCell) info.targetView).getFile();
+ id = R.id.album_menu_delete;
} else if(info.targetView instanceof AlbumView) {
folder = ((AlbumView) info.targetView).getFile();
+ id = R.id.album_menu_delete;
} else if(info.targetView instanceof ArtistView) {
folder = ((ArtistView) info.targetView).getFile();
+ id = R.id.artist_menu_delete;
} else if(info.targetView instanceof ArtistEntryView) {
folder = ((ArtistEntryView) info.targetView).getFile();
+ id = R.id.artist_menu_delete;
}
try {
if(!folder.exists()) {
- menu.removeItem(R.id.album_menu_delete);
+ menu.removeItem(id);
}
} catch(Exception e) {
Log.w(TAG, "Failed to lookup album directory info", e);