diff options
author | daneren2005 <daneren2005@gmail.com> | 2013-11-15 16:33:32 -0800 |
---|---|---|
committer | daneren2005 <daneren2005@gmail.com> | 2013-11-15 16:33:32 -0800 |
commit | a2dbaa1b4c715ae8bfd72399079f0632575c8a3b (patch) | |
tree | 48c4a006d8ccc1807b6a9508f69b1b0cb0e51592 | |
parent | 857ca6b21dbdd7b2633303a0bae08dedb1dd0446 (diff) | |
download | dsub-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.java | 4 |
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 +} |