From 7663fb1729b02f1177d75f37fa6a1fdacec10861 Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Mon, 15 Oct 2012 20:05:20 -0700 Subject: Reverted star support on now playing album art view --- .../github/daneren2005/dsub/activity/DownloadActivity.java | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'subsonic-android/src') 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 -- cgit v1.2.3