From 728a081194b555d5b57b64cdce58c3931a483500 Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Sat, 22 Mar 2014 16:57:45 -0700 Subject: Fix crash --- src/github/daneren2005/dsub/fragments/EqualizerFragment.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/github/daneren2005') 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); } -- cgit v1.2.3