diff options
author | Scott Jackson <daneren2005@gmail.com> | 2013-09-01 17:04:56 -0700 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2013-09-01 17:04:56 -0700 |
commit | e3717590c79566daa7e03a5612a0b3b13ddfbc55 (patch) | |
tree | 9c18f715b13fa78fe6c1e8a6adf1f8df26366571 /src/github/daneren2005 | |
parent | fcf127219c9128139e65ccd67024cc145c732858 (diff) | |
download | dsub-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.java | 6 |
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; } |