From b2c79de472485c9579789289d599c9d42f575564 Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Wed, 9 Jul 2014 08:37:54 -0700 Subject: Fix issue with recycling between movies and songs --- src/github/daneren2005/dsub/view/SongView.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/github/daneren2005/dsub/view/SongView.java b/src/github/daneren2005/dsub/view/SongView.java index 3e423877..e6156ceb 100644 --- a/src/github/daneren2005/dsub/view/SongView.java +++ b/src/github/daneren2005/dsub/view/SongView.java @@ -48,6 +48,7 @@ public class SongView extends UpdateView implements Checkable { private TextView durationTextView; private TextView statusTextView; private ImageView statusImageView; + private View bottomRowView; private DownloadService downloadService; private long revision = -1; @@ -80,6 +81,7 @@ public class SongView extends UpdateView implements Checkable { v.showContextMenu(); } }); + bottomRowView = findViewById(R.id.song_bottom); } public void setObjectImpl(Object obj1, Object obj2) { @@ -120,8 +122,9 @@ public class SongView extends UpdateView implements Checkable { } durationTextView.setText(Util.formatDuration(song.getDuration())); + bottomRowView.setVisibility(View.VISIBLE); } else { - findViewById(R.id.song_bottom).setVisibility(View.GONE); + bottomRowView.setVisibility(View.GONE); statusTextView.setText(Util.formatDuration(song.getDuration())); } -- cgit v1.2.3