diff options
-rw-r--r-- | src/github/daneren2005/dsub/service/CachedMusicService.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/github/daneren2005/dsub/service/CachedMusicService.java b/src/github/daneren2005/dsub/service/CachedMusicService.java index 4d7ddb7e..3704d012 100644 --- a/src/github/daneren2005/dsub/service/CachedMusicService.java +++ b/src/github/daneren2005/dsub/service/CachedMusicService.java @@ -198,21 +198,25 @@ public class CachedMusicService implements MusicService { @Override public void addToPlaylist(String id, List<MusicDirectory.Entry> toAdd, Context context, ProgressListener progressListener) throws Exception { + Util.delete(new File(context.getCacheDir(), getCacheName(context, "playlist", id))); musicService.addToPlaylist(id, toAdd, context, progressListener); } @Override public void removeFromPlaylist(String id, List<Integer> toRemove, Context context, ProgressListener progressListener) throws Exception { + Util.delete(new File(context.getCacheDir(), getCacheName(context, "playlist", id))); musicService.removeFromPlaylist(id, toRemove, context, progressListener); } @Override public void overwritePlaylist(String id, String name, int toRemove, List<MusicDirectory.Entry> toAdd, Context context, ProgressListener progressListener) throws Exception { + Util.delete(new File(context.getCacheDir(), getCacheName(context, "playlist", id))); musicService.overwritePlaylist(id, name, toRemove, toAdd, context, progressListener); } @Override public void updatePlaylist(String id, String name, String comment, boolean pub, Context context, ProgressListener progressListener) throws Exception { + Util.delete(new File(context.getCacheDir(), getCacheName(context, "playlist", id))); musicService.updatePlaylist(id, name, comment, pub, context, progressListener); } |