diff options
Diffstat (limited to 'src/github/daneren2005/dsub/service/CachedMusicService.java')
-rw-r--r-- | src/github/daneren2005/dsub/service/CachedMusicService.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/github/daneren2005/dsub/service/CachedMusicService.java b/src/github/daneren2005/dsub/service/CachedMusicService.java index 34a0118d..6b23730f 100644 --- a/src/github/daneren2005/dsub/service/CachedMusicService.java +++ b/src/github/daneren2005/dsub/service/CachedMusicService.java @@ -196,9 +196,9 @@ public class CachedMusicService implements MusicService { dir = musicService.getPlaylist(refresh, id, name, context, progressListener); FileUtil.serialize(context, dir, getCacheName(context, "playlist", id)); - if(cachedPlaylist == null || !cachedPlaylist.equals(dir)) { + if(cachedPlaylist == null || !cachedPlaylist.getChildren().equals(dir.getChildren())) { File playlistFile = FileUtil.getPlaylistFile(Util.getServerName(context, musicService.getInstance(context)), name); - FileUtil.writePlaylistFile(playlistFile, dir); + FileUtil.writePlaylistFile(context, playlistFile, dir); } } return dir; |