aboutsummaryrefslogtreecommitdiff
path: root/src/github/daneren2005
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2013-09-01 17:04:56 -0700
committerScott Jackson <daneren2005@gmail.com>2013-09-01 17:04:56 -0700
commite3717590c79566daa7e03a5612a0b3b13ddfbc55 (patch)
tree9c18f715b13fa78fe6c1e8a6adf1f8df26366571 /src/github/daneren2005
parentfcf127219c9128139e65ccd67024cc145c732858 (diff)
downloaddsub-e3717590c79566daa7e03a5612a0b3b13ddfbc55.tar.gz
dsub-e3717590c79566daa7e03a5612a0b3b13ddfbc55.tar.bz2
dsub-e3717590c79566daa7e03a5612a0b3b13ddfbc55.zip
Fix changes not showing up until scrolled
Diffstat (limited to 'src/github/daneren2005')
-rw-r--r--src/github/daneren2005/dsub/view/SongView.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/github/daneren2005/dsub/view/SongView.java b/src/github/daneren2005/dsub/view/SongView.java
index 5a334cd0..95a80f6c 100644
--- a/src/github/daneren2005/dsub/view/SongView.java
+++ b/src/github/daneren2005/dsub/view/SongView.java
@@ -63,6 +63,7 @@ public class SongView extends UpdateView implements Checkable {
private boolean isSaved = false;
private File partialFile;
private boolean partialFileExists = false;
+ private boolean loaded = false;
public SongView(Context context) {
super(context);
@@ -142,6 +143,7 @@ public class SongView extends UpdateView implements Checkable {
checkedTextView.setVisibility(checkable && !song.isVideo() ? View.VISIBLE : View.GONE);
revision = -1;
+ loaded = false;
}
@Override
@@ -168,11 +170,15 @@ public class SongView extends UpdateView implements Checkable {
// Check if needs to load metadata: check against all fields that we know are null in offline mode
if(song.getBitRate() == null && song.getDuration() == null && song.getDiscNumber() == null && isWorkDone) {
song.loadMetadata(downloadFile.getCompleteFile());
+ loaded = true;
}
}
@Override
protected void update() {
+ if(loaded) {
+ setObjectImpl(song, checkedTextView.getVisibility() == View.VISIBLE);
+ }
if (downloadService == null) {
return;
}