aboutsummaryrefslogtreecommitdiff
path: root/subsonic-android/src
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2013-04-29 22:30:31 -0700
committerScott Jackson <daneren2005@gmail.com>2013-04-29 22:30:31 -0700
commitf1408cdb34a90b5e03c76bff7e5afeeb75ab46f0 (patch)
treeae0c840d0cccf4138a16bf514a0d7bd6c31a9708 /subsonic-android/src
parent0650fb0159178472d5c76299eeb2aca7cbfc786d (diff)
downloaddsub-f1408cdb34a90b5e03c76bff7e5afeeb75ab46f0.tar.gz
dsub-f1408cdb34a90b5e03c76bff7e5afeeb75ab46f0.tar.bz2
dsub-f1408cdb34a90b5e03c76bff7e5afeeb75ab46f0.zip
Remove "Remove from playlist" from search fragment
Diffstat (limited to 'subsonic-android/src')
-rw-r--r--subsonic-android/src/github/daneren2005/dsub/fragments/SearchFragment.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/subsonic-android/src/github/daneren2005/dsub/fragments/SearchFragment.java b/subsonic-android/src/github/daneren2005/dsub/fragments/SearchFragment.java
index 5e53e71d..82c44913 100644
--- a/subsonic-android/src/github/daneren2005/dsub/fragments/SearchFragment.java
+++ b/subsonic-android/src/github/daneren2005/dsub/fragments/SearchFragment.java
@@ -143,6 +143,9 @@ public class SearchFragment extends SubsonicFragment {
AdapterView.AdapterContextMenuInfo info = (AdapterView.AdapterContextMenuInfo) menuInfo;
Object selectedItem = list.getItemAtPosition(info.position);
onCreateContextMenu(menu, view, menuInfo, selectedItem);
+ if(selectedItem instanceof MusicDirectory.Entry && !((MusicDirectory.Entry) selectedItem).isVideo() && !Util.isOffline(context)) {
+ menu.removeItem(R.id.song_menu_remove_playlist);
+ }
}
@Override