diff options
author | daneren2005 <daneren2005@gmail.com> | 2014-06-25 08:13:33 -0700 |
---|---|---|
committer | daneren2005 <daneren2005@gmail.com> | 2014-06-25 08:13:33 -0700 |
commit | 4fcc2e27724aa6636388e622eb98fd46d1c53685 (patch) | |
tree | a7d7888646256d36295d4ba7b1362dff46d8ce99 /src/github | |
parent | b346abbb030d0091cca47e4e10de6afe0f929b7c (diff) | |
download | dsub-4fcc2e27724aa6636388e622eb98fd46d1c53685.tar.gz dsub-4fcc2e27724aa6636388e622eb98fd46d1c53685.tar.bz2 dsub-4fcc2e27724aa6636388e622eb98fd46d1c53685.zip |
Don't restrict by folder if tag browsing
Browsing by tags has no concept of folders, and has no way of changing it once it is set. This should only ever be set if the user had one set before they switched to browsing by tags.
Diffstat (limited to 'src/github')
-rw-r--r-- | src/github/daneren2005/dsub/util/ShufflePlayBuffer.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/github/daneren2005/dsub/util/ShufflePlayBuffer.java b/src/github/daneren2005/dsub/util/ShufflePlayBuffer.java index 7554637c..5a728334 100644 --- a/src/github/daneren2005/dsub/util/ShufflePlayBuffer.java +++ b/src/github/daneren2005/dsub/util/ShufflePlayBuffer.java @@ -124,7 +124,10 @@ public class ShufflePlayBuffer { try { MusicService service = MusicServiceFactory.getMusicService(context); int n = CAPACITY - buffer.size(); - String folder = Util.getSelectedMusicFolderId(context); + String folder = null; + if(!Util.isTagBrowsing(context)) { + folder = Util.getSelectedMusicFolderId(context); + } MusicDirectory songs = service.getRandomSongs(n, folder, genre, startYear, endYear, context, null); synchronized (buffer) { |