aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordaneren2005 <daneren2005@gmail.com>2013-11-15 16:33:32 -0800
committerdaneren2005 <daneren2005@gmail.com>2013-11-15 16:33:32 -0800
commita2dbaa1b4c715ae8bfd72399079f0632575c8a3b (patch)
tree48c4a006d8ccc1807b6a9508f69b1b0cb0e51592
parent857ca6b21dbdd7b2633303a0bae08dedb1dd0446 (diff)
downloaddsub-a2dbaa1b4c715ae8bfd72399079f0632575c8a3b.tar.gz
dsub-a2dbaa1b4c715ae8bfd72399079f0632575c8a3b.tar.bz2
dsub-a2dbaa1b4c715ae8bfd72399079f0632575c8a3b.zip
#153 Make online parsing obey pref to sort by year
-rw-r--r--src/github/daneren2005/dsub/service/parser/MusicDirectoryParser.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/github/daneren2005/dsub/service/parser/MusicDirectoryParser.java b/src/github/daneren2005/dsub/service/parser/MusicDirectoryParser.java
index 17b09805..56740d2d 100644
--- a/src/github/daneren2005/dsub/service/parser/MusicDirectoryParser.java
+++ b/src/github/daneren2005/dsub/service/parser/MusicDirectoryParser.java
@@ -72,7 +72,7 @@ public class MusicDirectoryParser extends MusicDirectoryEntryParser {
// Only apply sorting on server version 4.7 and greater, where disc is supported
if(Util.checkServerVersion(context, "1.8.0")) {
- dir.sortChildren();
+ dir.sortChildren(Util.getPreferences(context).getBoolean(Constants.PREFERENCES_KEY_SORT_BY_YEAR, false));
}
long t1 = System.currentTimeMillis();
@@ -80,4 +80,4 @@ public class MusicDirectoryParser extends MusicDirectoryEntryParser {
return dir;
}
-} \ No newline at end of file
+}