From 3220cbd339260f95ff43b7b644699795149f4783 Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Thu, 27 Mar 2014 07:14:01 -0700 Subject: Fix bass/loudness not reseting when turning off equalizer --- src/github/daneren2005/dsub/fragments/EqualizerFragment.java | 8 ++++++++ 1 file changed, 8 insertions(+) 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; -- cgit v1.2.3