aboutsummaryrefslogtreecommitdiff
path: root/src/github/daneren2005
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2014-03-22 16:57:45 -0700
committerScott Jackson <daneren2005@gmail.com>2014-03-22 16:57:45 -0700
commit728a081194b555d5b57b64cdce58c3931a483500 (patch)
tree9467dba241beb37dbd3f16e49230899c621647b8 /src/github/daneren2005
parent4305a58311956b50945a14c4f1222233d0390d2b (diff)
downloaddsub-728a081194b555d5b57b64cdce58c3931a483500.tar.gz
dsub-728a081194b555d5b57b64cdce58c3931a483500.tar.bz2
dsub-728a081194b555d5b57b64cdce58c3931a483500.zip
Fix crash
Diffstat (limited to 'src/github/daneren2005')
-rw-r--r--src/github/daneren2005/dsub/fragments/EqualizerFragment.java6
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);
}