From a193480c28d2ae6d5f36eeb226d79a7b08b398bb Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Wed, 10 Oct 2012 19:57:33 -0700 Subject: Fixed cross-tab star updating --- subsonic-android/src/github/daneren2005/dsub/view/SongView.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/subsonic-android/src/github/daneren2005/dsub/view/SongView.java b/subsonic-android/src/github/daneren2005/dsub/view/SongView.java index 13f88a3e..9e69bb49 100644 --- a/subsonic-android/src/github/daneren2005/dsub/view/SongView.java +++ b/subsonic-android/src/github/daneren2005/dsub/view/SongView.java @@ -96,6 +96,7 @@ public class SongView extends UpdateView implements Checkable { @Override protected void update() { + starButton.setVisibility((Util.isOffline(getContext()) || !song.isStarred()) ? View.GONE : View.VISIBLE); DownloadService downloadService = DownloadServiceImpl.getInstance(); if (downloadService == null) { return; @@ -125,8 +126,7 @@ public class SongView extends UpdateView implements Checkable { titleTextView.setCompoundDrawablesWithIntrinsicBounds(R.drawable.stat_notify_playing, 0, 0, 0); } else { titleTextView.setCompoundDrawablesWithIntrinsicBounds(0, 0, 0, 0); - } - starButton.setVisibility((Util.isOffline(getContext()) || !song.isStarred()) ? View.GONE : View.VISIBLE); + } } @Override -- cgit v1.2.3