From e3717590c79566daa7e03a5612a0b3b13ddfbc55 Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Sun, 1 Sep 2013 17:04:56 -0700 Subject: Fix changes not showing up until scrolled --- src/github/daneren2005/dsub/view/SongView.java | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/github/daneren2005') 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; } -- cgit v1.2.3