Skip to content

Commit

Permalink
Fix browsing with empty playlist
Browse files Browse the repository at this point in the history
  • Loading branch information
daneren2005 committed Jul 25, 2013
1 parent dc83c47 commit 6ac0a5a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ else if(song.getArtist() != null) {
durationTextView.setText(Util.formatDuration(song.getDuration()));
checkedTextView.setVisibility(checkable && !song.isVideo() ? View.VISIBLE : View.GONE);

revision = 0;
revision = -1;
updateBackground();
update();
}
Expand All @@ -158,7 +158,7 @@ protected void updateBackground() {
}

long newRevision = downloadService.getDownloadListUpdateRevision();
if(revision != newRevision) {
if(revision != newRevision || downloadFile == null) {
downloadFile = downloadService.forSong(song);
revision = newRevision;
}
Expand Down

0 comments on commit 6ac0a5a

Please sign in to comment.