diff options
author | Scott Jackson <daneren2005@gmail.com> | 2012-09-26 21:29:38 -0700 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2012-09-26 21:29:38 -0700 |
commit | fbbbc3831fcfd7141ad7fa77f0fcbe3a8f089caa (patch) | |
tree | 0e77583bc2066e92bb1994e38fff853c010f23e9 /subsonic-android/src | |
parent | 2f46ed0305791d4ab38ba51087d5602ed10280b6 (diff) | |
download | dsub-fbbbc3831fcfd7141ad7fa77f0fcbe3a8f089caa.tar.gz dsub-fbbbc3831fcfd7141ad7fa77f0fcbe3a8f089caa.tar.bz2 dsub-fbbbc3831fcfd7141ad7fa77f0fcbe3a8f089caa.zip |
Added download option on top of cache which doesn't 'pin' song
Diffstat (limited to 'subsonic-android/src')
-rw-r--r-- | subsonic-android/src/github/daneren2005/dsub/activity/SelectAlbumActivity.java | 7 |
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); |