diff options
author | Scott Jackson <daneren2005@gmail.com> | 2014-05-03 17:26:59 -0700 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2014-05-03 17:26:59 -0700 |
commit | ddac0b1268f3336d27f83c0e6a9e00a021c6ba2e (patch) | |
tree | 00478b6c0aa747b046ea7e239a6ec5de7c1143a8 /src | |
parent | 7f778403863b33a9460df9cfbc20114af755a237 (diff) | |
download | dsub-ddac0b1268f3336d27f83c0e6a9e00a021c6ba2e.tar.gz dsub-ddac0b1268f3336d27f83c0e6a9e00a021c6ba2e.tar.bz2 dsub-ddac0b1268f3336d27f83c0e6a9e00a021c6ba2e.zip |
Apply same work around for applying presets
Diffstat (limited to 'src')
-rw-r--r-- | src/github/daneren2005/dsub/fragments/EqualizerFragment.java | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/github/daneren2005/dsub/fragments/EqualizerFragment.java b/src/github/daneren2005/dsub/fragments/EqualizerFragment.java index 17448516..8329298f 100644 --- a/src/github/daneren2005/dsub/fragments/EqualizerFragment.java +++ b/src/github/daneren2005/dsub/fragments/EqualizerFragment.java @@ -146,7 +146,17 @@ public class EqualizerFragment extends SubsonicFragment { @Override
public boolean onContextItemSelected(MenuItem menuItem) {
short preset = (short) menuItem.getItemId();
- equalizer.usePreset(preset);
+ for(int i = 0; i < 10; i++) {
+ try {
+ equalizer.usePreset(preset);
+ i = 10;
+ } catch (UnsupportedOperationException e) {
+ equalizerController.release();
+ equalizer = equalizerController.getEqualizer();
+ bass = equalizerController.getBassBoost();
+ loudnessEnhancer = equalizerController.getLoudnessEnhancerController();
+ }
+ }
updateBars(false);
return true;
}
|