aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordaneren2005 <daneren2005@gmail.com>2013-11-21 16:01:20 -0800
committerdaneren2005 <daneren2005@gmail.com>2013-11-21 16:01:20 -0800
commit4a78f5cdd8b54e5c834aa7e5ccf290d46bc349a7 (patch)
treef74cc0e705ad057b9a2338abc419bf5efc7523fe
parent14577cc69ea0ad9367abd3a937e5af0df8a673c6 (diff)
downloaddsub-4a78f5cdd8b54e5c834aa7e5ccf290d46bc349a7.tar.gz
dsub-4a78f5cdd8b54e5c834aa7e5ccf290d46bc349a7.tar.bz2
dsub-4a78f5cdd8b54e5c834aa7e5ccf290d46bc349a7.zip
#193 Add logic for option to use custom sort
-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 a8755d58..9b97d6d4 100644
--- a/src/github/daneren2005/dsub/service/parser/MusicDirectoryParser.java
+++ b/src/github/daneren2005/dsub/service/parser/MusicDirectoryParser.java
@@ -70,7 +70,7 @@ public class MusicDirectoryParser extends MusicDirectoryEntryParser {
updateProgress(progressListener, R.string.parser_reading_done);
// Only apply sorting on server version 4.7 and greater, where disc is supported
- if(Util.checkServerVersion(context, "1.8.0")) {
+ if(Util.checkServerVersion(context, "1.8.0") && Util.getPreferences(context).getBoolean(Constants.PREFERENCES_KEY_CUSTOM_SORT_ENABLED, true)) {
dir.sortChildren();
}
@@ -79,4 +79,4 @@ public class MusicDirectoryParser extends MusicDirectoryEntryParser {
return dir;
}
-} \ No newline at end of file
+}