diff options
author | Scott Jackson <daneren2005@gmail.com> | 2014-08-30 13:55:16 -0700 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2014-08-30 13:55:16 -0700 |
commit | 33cf60e2982294eed04b409e1391c1316e94c8a6 (patch) | |
tree | cc94e62a7fdb97abec0bdcc75120395eb57e6c90 | |
parent | 6ef22270db0874d06d75075fe04bb560eebbae25 (diff) | |
download | dsub-33cf60e2982294eed04b409e1391c1316e94c8a6.tar.gz dsub-33cf60e2982294eed04b409e1391c1316e94c8a6.tar.bz2 dsub-33cf60e2982294eed04b409e1391c1316e94c8a6.zip |
Change GenericSongUpdater to check tag settings
-rw-r--r-- | src/github/daneren2005/dsub/service/CachedMusicService.java | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/github/daneren2005/dsub/service/CachedMusicService.java b/src/github/daneren2005/dsub/service/CachedMusicService.java index f68adb7b..6f9597c0 100644 --- a/src/github/daneren2005/dsub/service/CachedMusicService.java +++ b/src/github/daneren2005/dsub/service/CachedMusicService.java @@ -1244,7 +1244,14 @@ public class CachedMusicService implements MusicService { public abstract void updateResult(Entry result); public void execute() { - new MusicDirectoryUpdater(context, "directory", entry.getParent()) { + String cacheName; + if(Util.isTagBrowsing(context, musicService.getInstance(context))) { + cacheName = "album"; + } else { + cacheName = "directory"; + } + + new MusicDirectoryUpdater(context, cacheName, entry.getParent()) { @Override public boolean checkResult(Entry check) { return GenericSongUpdater.this.checkResult(check); |