aboutsummaryrefslogtreecommitdiff
path: root/subsonic-android/src
diff options
context:
space:
mode:
authorowner <owner@DeeDee-Laptop>2012-07-12 13:47:03 -0700
committerowner <owner@DeeDee-Laptop>2012-07-12 13:47:03 -0700
commitf78f88c0ba42c8ebe5e0db1c22dc43b2a872e66d (patch)
tree5fa949d5b2e0a08bd1e3eff4ffa230b06483839f /subsonic-android/src
parent816c969bb7201810f9271633a1752fcfbddd4cce (diff)
downloaddsub-f78f88c0ba42c8ebe5e0db1c22dc43b2a872e66d.tar.gz
dsub-f78f88c0ba42c8ebe5e0db1c22dc43b2a872e66d.tar.bz2
dsub-f78f88c0ba42c8ebe5e0db1c22dc43b2a872e66d.zip
Delete Song option under Now Playing long press menu (removes from cache)
Diffstat (limited to 'subsonic-android/src')
-rw-r--r--subsonic-android/src/github/daneren2005/subphonic/activity/DownloadActivity.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/subsonic-android/src/github/daneren2005/subphonic/activity/DownloadActivity.java b/subsonic-android/src/github/daneren2005/subphonic/activity/DownloadActivity.java
index 3c2d7b04..80c264f5 100644
--- a/subsonic-android/src/github/daneren2005/subphonic/activity/DownloadActivity.java
+++ b/subsonic-android/src/github/daneren2005/subphonic/activity/DownloadActivity.java
@@ -74,6 +74,7 @@ import github.daneren2005.subphonic.util.Util;
import github.daneren2005.subphonic.view.VisualizerView;
import static github.daneren2005.subphonic.domain.PlayerState.*;
+import java.util.ArrayList;
public class DownloadActivity extends SubsonicTabActivity implements OnGestureListener {
@@ -556,6 +557,13 @@ public class DownloadActivity extends SubsonicTabActivity implements OnGestureLi
getDownloadService().remove(song);
onDownloadListChanged();
return true;
+ case R.id.menu_delete:
+ getDownloadService().remove(song);
+ List<MusicDirectory.Entry> songs = new ArrayList<MusicDirectory.Entry>(1);
+ songs.add(song.getSong());
+ getDownloadService().delete(songs);
+ onDownloadListChanged();
+ return true;
case R.id.menu_remove_all:
getDownloadService().setShufflePlayEnabled(false);
getDownloadService().clear();