aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);