aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2013-07-24 21:01:43 -0700
committerScott Jackson <daneren2005@gmail.com>2013-07-24 21:01:43 -0700
commit6ac0a5a01e308f1e7ca699d126c29751faf061f5 (patch)
treea7e9846678057b30f8eb79c0d71ac22b41245c94
parentdc83c4735ade2caf9b51eab3c7a1844581d0383a (diff)
downloaddsub-6ac0a5a01e308f1e7ca699d126c29751faf061f5.tar.gz
dsub-6ac0a5a01e308f1e7ca699d126c29751faf061f5.tar.bz2
dsub-6ac0a5a01e308f1e7ca699d126c29751faf061f5.zip
Fix browsing with empty playlist
-rw-r--r--subsonic-android/src/github/daneren2005/dsub/view/SongView.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/subsonic-android/src/github/daneren2005/dsub/view/SongView.java b/subsonic-android/src/github/daneren2005/dsub/view/SongView.java
index 4da03c72..042d8031 100644
--- a/subsonic-android/src/github/daneren2005/dsub/view/SongView.java
+++ b/subsonic-android/src/github/daneren2005/dsub/view/SongView.java
@@ -143,7 +143,7 @@ public class SongView extends UpdateView implements Checkable {
durationTextView.setText(Util.formatDuration(song.getDuration()));
checkedTextView.setVisibility(checkable && !song.isVideo() ? View.VISIBLE : View.GONE);
- revision = 0;
+ revision = -1;
updateBackground();
update();
}
@@ -158,7 +158,7 @@ public class SongView extends UpdateView implements Checkable {
}
long newRevision = downloadService.getDownloadListUpdateRevision();
- if(revision != newRevision) {
+ if(revision != newRevision || downloadFile == null) {
downloadFile = downloadService.forSong(song);
revision = newRevision;
}