diff options
author | Scott Jackson <daneren2005@gmail.com> | 2013-04-29 22:30:31 -0700 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2013-04-29 22:30:31 -0700 |
commit | f1408cdb34a90b5e03c76bff7e5afeeb75ab46f0 (patch) | |
tree | ae0c840d0cccf4138a16bf514a0d7bd6c31a9708 | |
parent | 0650fb0159178472d5c76299eeb2aca7cbfc786d (diff) | |
download | dsub-f1408cdb34a90b5e03c76bff7e5afeeb75ab46f0.tar.gz dsub-f1408cdb34a90b5e03c76bff7e5afeeb75ab46f0.tar.bz2 dsub-f1408cdb34a90b5e03c76bff7e5afeeb75ab46f0.zip |
Remove "Remove from playlist" from search fragment
-rw-r--r-- | subsonic-android/src/github/daneren2005/dsub/fragments/SearchFragment.java | 3 |
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
|