diff options
author | Scott Jackson <daneren2005@gmail.com> | 2014-03-22 16:57:45 -0700 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2014-03-22 16:57:45 -0700 |
commit | 728a081194b555d5b57b64cdce58c3931a483500 (patch) | |
tree | 9467dba241beb37dbd3f16e49230899c621647b8 /src | |
parent | 4305a58311956b50945a14c4f1222233d0390d2b (diff) | |
download | dsub-728a081194b555d5b57b64cdce58c3931a483500.tar.gz dsub-728a081194b555d5b57b64cdce58c3931a483500.tar.bz2 dsub-728a081194b555d5b57b64cdce58c3931a483500.zip |
Fix crash
Diffstat (limited to 'src')
-rw-r--r-- | src/github/daneren2005/dsub/fragments/EqualizerFragment.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/github/daneren2005/dsub/fragments/EqualizerFragment.java b/src/github/daneren2005/dsub/fragments/EqualizerFragment.java index 1475ccdd..07fb9663 100644 --- a/src/github/daneren2005/dsub/fragments/EqualizerFragment.java +++ b/src/github/daneren2005/dsub/fragments/EqualizerFragment.java @@ -186,7 +186,11 @@ public class EqualizerFragment extends SubsonicFragment { } else if(setLevel > maxEQLevel) {
setLevel = maxEQLevel;
}
- equalizer.setBandLevel(band, setLevel);
+ try {
+ equalizer.setBandLevel(band, setLevel);
+ } catch(Exception e) {
+ Log.w(TAG, "Failed to set band level");
+ }
} else if(!isEnabled) {
bar.setProgress(-minEQLevel);
}
|