diff options
author | Scott Jackson <daneren2005@gmail.com> | 2012-11-14 21:52:27 -0800 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2012-11-14 21:52:27 -0800 |
commit | 6a32fcd4600e04fc511680734821a9d9e051c7cc (patch) | |
tree | 48fc21695e8b3609884cfbb4abf1abab8b035941 /subsonic-android | |
parent | 1fd0c140dfa434cb55a7816056d7bfea0f3b2c22 (diff) | |
download | dsub-6a32fcd4600e04fc511680734821a9d9e051c7cc.tar.gz dsub-6a32fcd4600e04fc511680734821a9d9e051c7cc.tar.bz2 dsub-6a32fcd4600e04fc511680734821a9d9e051c7cc.zip |
Added many of the action bar menu items to the select song context
Diffstat (limited to 'subsonic-android')
-rw-r--r-- | subsonic-android/res/menu/select_song_context.xml | 18 | ||||
-rw-r--r-- | subsonic-android/src/github/daneren2005/dsub/activity/SelectAlbumActivity.java | 12 |
2 files changed, 30 insertions, 0 deletions
diff --git a/subsonic-android/res/menu/select_song_context.xml b/subsonic-android/res/menu/select_song_context.xml index cc88fd9d..b4e81799 100644 --- a/subsonic-android/res/menu/select_song_context.xml +++ b/subsonic-android/res/menu/select_song_context.xml @@ -17,6 +17,24 @@ /> <item + android:id="@+id/song_menu_download" + android:title="@string/common.download" + /> + + <item + android:id="@+id/song_menu_pin" + android:title="@string/common.pin" + /> + + <item + android:id="@+id/song_menu_delete" + android:title="@string/common.delete"/> + + <item + android:id="@+id/song_menu_add_playlist" + android:title="@string/menu.add_playlist"/> + + <item android:id="@+id/song_menu_star" android:title="@string/common.star"/> diff --git a/subsonic-android/src/github/daneren2005/dsub/activity/SelectAlbumActivity.java b/subsonic-android/src/github/daneren2005/dsub/activity/SelectAlbumActivity.java index 877a9452..b36be1aa 100644 --- a/subsonic-android/src/github/daneren2005/dsub/activity/SelectAlbumActivity.java +++ b/subsonic-android/src/github/daneren2005/dsub/activity/SelectAlbumActivity.java @@ -268,6 +268,18 @@ public class SelectAlbumActivity extends SubsonicTabActivity { case R.id.song_menu_play_last: getDownloadService().download(songs, false, false, false, false); break; + case R.id.song_menu_download: + getDownloadService().downloadBackground(songs, false); + break; + case R.id.song_menu_pin: + getDownloadService().downloadBackground(songs, true); + break; + case R.id.song_menu_delete: + getDownloadService().delete(songs); + break; + case R.id.song_menu_add_playlist: + addToPlaylist(songs); + break; case R.id.song_menu_star: toggleStarred(entry); break; |