aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2014-07-09 08:37:54 -0700
committerScott Jackson <daneren2005@gmail.com>2014-07-09 08:37:54 -0700
commitb2c79de472485c9579789289d599c9d42f575564 (patch)
tree7d5945a3856c45b516048e1b06adce46b6d2422f /src
parent9e44860e3758f9d736c63934897a5d61e4fa9e17 (diff)
downloaddsub-b2c79de472485c9579789289d599c9d42f575564.tar.gz
dsub-b2c79de472485c9579789289d599c9d42f575564.tar.bz2
dsub-b2c79de472485c9579789289d599c9d42f575564.zip
Fix issue with recycling between movies and songs
Diffstat (limited to 'src')
-rw-r--r--src/github/daneren2005/dsub/view/SongView.java5
1 files changed, 4 insertions, 1 deletions
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()));
}