aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2013-11-12 19:34:50 -0800
committerScott Jackson <daneren2005@gmail.com>2013-11-12 19:34:50 -0800
commitd07899129244200b9049e325ac0b265894fe9191 (patch)
treeee6f1917e9447b9e05507641f80957cfb972deb5 /src
parent5f97130b706983684ff22342f4223f966f94c08e (diff)
downloaddsub-d07899129244200b9049e325ac0b265894fe9191.tar.gz
dsub-d07899129244200b9049e325ac0b265894fe9191.tar.bz2
dsub-d07899129244200b9049e325ac0b265894fe9191.zip
Fix minor issues with EQs
Diffstat (limited to 'src')
-rw-r--r--src/github/daneren2005/dsub/fragments/DownloadFragment.java1
-rw-r--r--src/github/daneren2005/dsub/fragments/EqualizerFragment.java7
2 files changed, 7 insertions, 1 deletions
diff --git a/src/github/daneren2005/dsub/fragments/DownloadFragment.java b/src/github/daneren2005/dsub/fragments/DownloadFragment.java
index 682319f1..6da6ca70 100644
--- a/src/github/daneren2005/dsub/fragments/DownloadFragment.java
+++ b/src/github/daneren2005/dsub/fragments/DownloadFragment.java
@@ -753,6 +753,7 @@ public class DownloadFragment extends SubsonicFragment implements OnGestureListe
if(rootView != null) {
if(primary) {
mainLayout.setVisibility(View.VISIBLE);
+ updateButtons();
} else {
mainLayout.setVisibility(View.GONE);
}
diff --git a/src/github/daneren2005/dsub/fragments/EqualizerFragment.java b/src/github/daneren2005/dsub/fragments/EqualizerFragment.java
index 2b710032..56f876cb 100644
--- a/src/github/daneren2005/dsub/fragments/EqualizerFragment.java
+++ b/src/github/daneren2005/dsub/fragments/EqualizerFragment.java
@@ -21,6 +21,7 @@ package github.daneren2005.dsub.fragments;
import android.content.SharedPreferences;
import android.media.audiofx.Equalizer;
import android.os.Bundle;
+import android.util.Log;
import android.view.ContextMenu;
import android.view.LayoutInflater;
import android.view.MenuItem;
@@ -152,7 +153,11 @@ public class EqualizerFragment extends SubsonicFragment {
short setLevel;
if(changedEnabled) {
setLevel = (short)(equalizer.getBandLevel(band) - masterLevel);
- bar.setProgress(equalizer.getBandLevel(band) - minEQLevel);
+ if(isEnabled) {
+ bar.setProgress(equalizer.getBandLevel(band) - minEQLevel);
+ } else {
+ bar.setProgress(-minEQLevel);
+ }
} else {
bar.setProgress(equalizer.getBandLevel(band) - minEQLevel);
setLevel = (short)(equalizer.getBandLevel(band) + masterLevel);