aboutsummaryrefslogtreecommitdiff
path: root/src/github/daneren2005
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2014-03-27 07:14:01 -0700
committerScott Jackson <daneren2005@gmail.com>2014-03-27 07:14:01 -0700
commit3220cbd339260f95ff43b7b644699795149f4783 (patch)
treed644d5d12ef1450f9fb1cda9bfc46c003ac1261f /src/github/daneren2005
parent9234825603dc0ad93f0dc084ac54539b7c84c931 (diff)
downloaddsub-3220cbd339260f95ff43b7b644699795149f4783.tar.gz
dsub-3220cbd339260f95ff43b7b644699795149f4783.tar.bz2
dsub-3220cbd339260f95ff43b7b644699795149f4783.zip
Fix bass/loudness not reseting when turning off equalizer
Diffstat (limited to 'src/github/daneren2005')
-rw-r--r--src/github/daneren2005/dsub/fragments/EqualizerFragment.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/github/daneren2005/dsub/fragments/EqualizerFragment.java b/src/github/daneren2005/dsub/fragments/EqualizerFragment.java
index 9c7f149b..4bdb1716 100644
--- a/src/github/daneren2005/dsub/fragments/EqualizerFragment.java
+++ b/src/github/daneren2005/dsub/fragments/EqualizerFragment.java
@@ -200,6 +200,14 @@ public class EqualizerFragment extends SubsonicFragment {
if(loudnessBar != null) {
loudnessBar.setEnabled(isEnabled);
}
+ if(changedEnabled && !isEnabled) {
+ bass.setStrength((short) 0);
+ bassBar.setProgress(0);
+ if(loudnessBar != null) {
+ loudnessEnhancer.setGain(0);
+ loudnessBar.setProgress(0);
+ }
+ }
if(!isEnabled) {
masterLevel = 0;