aboutsummaryrefslogtreecommitdiff
path: root/subsonic-android/src
diff options
context:
space:
mode:
Diffstat (limited to 'subsonic-android/src')
-rw-r--r--subsonic-android/src/github/daneren2005/dsub/activity/SelectAlbumActivity.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/subsonic-android/src/github/daneren2005/dsub/activity/SelectAlbumActivity.java b/subsonic-android/src/github/daneren2005/dsub/activity/SelectAlbumActivity.java
index d5312375..12653d3d 100644
--- a/subsonic-android/src/github/daneren2005/dsub/activity/SelectAlbumActivity.java
+++ b/subsonic-android/src/github/daneren2005/dsub/activity/SelectAlbumActivity.java
@@ -58,6 +58,7 @@ public class SelectAlbumActivity extends SubsonicTabActivity {
private View emptyView;
private boolean hideButtons = false;
private com.actionbarsherlock.view.MenuItem selectAll;
+ private com.actionbarsherlock.view.MenuItem download;
private com.actionbarsherlock.view.MenuItem cache;
private com.actionbarsherlock.view.MenuItem delete;
private com.actionbarsherlock.view.MenuItem playLast;
@@ -120,6 +121,7 @@ public class SelectAlbumActivity extends SubsonicTabActivity {
com.actionbarsherlock.view.MenuInflater inflater = getSupportMenuInflater();
inflater.inflate(R.menu.select_album, menu);
selectAll = menu.findItem(R.id.menu_select);
+ download = menu.findItem(R.id.menu_download);
cache = menu.findItem(R.id.menu_cache);
delete = menu.findItem(R.id.menu_delete);
playLast = menu.findItem(R.id.menu_play_last);
@@ -153,6 +155,10 @@ public class SelectAlbumActivity extends SubsonicTabActivity {
case R.id.menu_refresh:
refresh();
return true;
+ case R.id.menu_download:
+ downloadBackground(false);
+ selectAll(false, false);
+ return true;
case R.id.menu_cache:
downloadBackground(true);
selectAll(false, false);
@@ -534,6 +540,7 @@ public class SelectAlbumActivity extends SubsonicTabActivity {
entryList.addFooterView(footer);
} else if(selectAll != null) {
selectAll.setVisible(false);
+ download.setVisible(false);
cache.setVisible(false);
delete.setVisible(false);
playLast.setVisible(false);