aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2013-12-15 17:39:24 -0800
committerScott Jackson <daneren2005@gmail.com>2013-12-15 17:39:24 -0800
commit467ee4c2ddc0f36f879b96f77b129d3cdac8de22 (patch)
treeaa6b3588d318d68fd0ac39232960f2c3ee9e817e
parent7b18297d01c19a2cafc20c5b24168d453e5246f0 (diff)
downloaddsub-467ee4c2ddc0f36f879b96f77b129d3cdac8de22.tar.gz
dsub-467ee4c2ddc0f36f879b96f77b129d3cdac8de22.tar.bz2
dsub-467ee4c2ddc0f36f879b96f77b129d3cdac8de22.zip
Catch crash on EQ initializing
-rw-r--r--src/github/daneren2005/dsub/fragments/EqualizerFragment.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/github/daneren2005/dsub/fragments/EqualizerFragment.java b/src/github/daneren2005/dsub/fragments/EqualizerFragment.java
index 8b2c5313..bdc41579 100644
--- a/src/github/daneren2005/dsub/fragments/EqualizerFragment.java
+++ b/src/github/daneren2005/dsub/fragments/EqualizerFragment.java
@@ -62,7 +62,12 @@ public class EqualizerFragment extends SubsonicFragment {
equalizerController = DownloadServiceImpl.getInstance().getEqualizerController();
equalizer = equalizerController.getEqualizer();
- initEqualizer();
+ try {
+ initEqualizer();
+ } catch(Exception e) {
+ Util.toast(context, "Failed to initialize EQ");
+ context.onBackPressed();
+ }
final View presetButton = rootView.findViewById(R.id.equalizer_preset);
registerForContextMenu(presetButton);