diff options
author | Scott Jackson <daneren2005@gmail.com> | 2012-10-15 20:05:20 -0700 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2012-10-15 20:05:20 -0700 |
commit | 7663fb1729b02f1177d75f37fa6a1fdacec10861 (patch) | |
tree | d5a817fd3ffa74322ca0ad5028afe1ce2fd6e45d /subsonic-android | |
parent | 3c7bdc38e50ce6b882def8a7ed612adefb11e0f4 (diff) | |
download | dsub-7663fb1729b02f1177d75f37fa6a1fdacec10861.tar.gz dsub-7663fb1729b02f1177d75f37fa6a1fdacec10861.tar.bz2 dsub-7663fb1729b02f1177d75f37fa6a1fdacec10861.zip |
Reverted star support on now playing album art view
Diffstat (limited to 'subsonic-android')
-rw-r--r-- | subsonic-android/src/github/daneren2005/dsub/activity/DownloadActivity.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/subsonic-android/src/github/daneren2005/dsub/activity/DownloadActivity.java b/subsonic-android/src/github/daneren2005/dsub/activity/DownloadActivity.java index c2f8c7f8..be955ef7 100644 --- a/subsonic-android/src/github/daneren2005/dsub/activity/DownloadActivity.java +++ b/subsonic-android/src/github/daneren2005/dsub/activity/DownloadActivity.java @@ -163,6 +163,17 @@ public class DownloadActivity extends SubsonicTabActivity implements OnGestureLi starButton = (ImageButton) findViewById(R.id.download_star); starButton.setVisibility(Util.isOffline(this) ? View.GONE : View.VISIBLE); + starButton.setOnClickListener(new OnClickListener() { + @Override + public void onClick(View v) { + DownloadFile currentDownload = getDownloadService().getCurrentPlaying(); + if (currentDownload != null) { + MusicDirectory.Entry currentSong = currentDownload.getSong(); + toggleStarred(currentSong); + starButton.setImageResource(currentSong.isStarred() ? android.R.drawable.btn_star_big_on : android.R.drawable.btn_star_big_off); + } + } + }); View.OnTouchListener touchListener = new View.OnTouchListener() { @Override |