diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/github/daneren2005/dsub/fragments/DownloadFragment.java | 1 | ||||
-rw-r--r-- | src/github/daneren2005/dsub/fragments/EqualizerFragment.java | 7 |
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);
|