diff options
author | Scott Jackson <daneren2005@gmail.com> | 2016-01-14 18:32:46 -0800 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2016-01-14 18:32:46 -0800 |
commit | 1a017dd3dc248ddf6096bc05be12a6faa1a7bb82 (patch) | |
tree | 728aaff1689a86999da5405e20bf94ea00cc0dc5 /app | |
parent | 28092dcca0e778c3c598b2f257c68084daf76f24 (diff) | |
download | dsub-1a017dd3dc248ddf6096bc05be12a6faa1a7bb82.tar.gz dsub-1a017dd3dc248ddf6096bc05be12a6faa1a7bb82.tar.bz2 dsub-1a017dd3dc248ddf6096bc05be12a6faa1a7bb82.zip |
Don't bother parsing ReplayGain tags unless it is enabled
Diffstat (limited to 'app')
-rw-r--r-- | app/src/main/java/github/daneren2005/dsub/service/DownloadService.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/main/java/github/daneren2005/dsub/service/DownloadService.java b/app/src/main/java/github/daneren2005/dsub/service/DownloadService.java index cde246c1..a4f88ee2 100644 --- a/app/src/main/java/github/daneren2005/dsub/service/DownloadService.java +++ b/app/src/main/java/github/daneren2005/dsub/service/DownloadService.java @@ -2490,9 +2490,9 @@ public class DownloadService extends Service { SharedPreferences prefs = Util.getPreferences(this); try { - float[] rg = BastpUtil.getReplayGainValues(downloadFile.getFile().getCanonicalPath()); /* track, album */ float adjust = 0f; if (prefs.getBoolean(Constants.PREFERENCES_KEY_REPLAY_GAIN, false)) { + float[] rg = BastpUtil.getReplayGainValues(downloadFile.getFile().getCanonicalPath()); /* track, album */ boolean singleAlbum = false; String replayGainType = prefs.getString(Constants.PREFERENCES_KEY_REPLAY_GAIN_TYPE, "1"); |