From d07899129244200b9049e325ac0b265894fe9191 Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Tue, 12 Nov 2013 19:34:50 -0800 Subject: Fix minor issues with EQs --- src/github/daneren2005/dsub/fragments/DownloadFragment.java | 1 + src/github/daneren2005/dsub/fragments/EqualizerFragment.java | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'src') 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); -- cgit v1.2.3