diff options
author | Scott Jackson <daneren2005@gmail.com> | 2013-03-11 07:50:08 -0700 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2013-03-11 07:50:08 -0700 |
commit | 26caf5a01f0f1a5eff89c15c67eda5148d47a261 (patch) | |
tree | 9c11df510a396acdfb6c681511265648556a35f8 /subsonic-android/src | |
parent | e641470a614f5c69c4fbf2574643691060ae0f47 (diff) | |
download | dsub-26caf5a01f0f1a5eff89c15c67eda5148d47a261.tar.gz dsub-26caf5a01f0f1a5eff89c15c67eda5148d47a261.tar.bz2 dsub-26caf5a01f0f1a5eff89c15c67eda5148d47a261.zip |
Base EQ/Visualizer showing off of API to avoid equalizer fx library loading
Diffstat (limited to 'subsonic-android/src')
-rw-r--r-- | subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java b/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java index 91a3a5ea..058b8eef 100644 --- a/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java +++ b/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java @@ -125,20 +125,10 @@ public class DownloadServiceImpl extends Service implements DownloadService { private int timerDuration; static { - try { - EqualizerController.checkAvailable(); - equalizerAvailable = true; - } catch (Throwable t) { - equalizerAvailable = false; - } - } - static { - try { - VisualizerController.checkAvailable(); - visualizerAvailable = true; - } catch (Throwable t) { - visualizerAvailable = false; - } + if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.GINGERBREAD) { + equalizerAvailable = true; + visualizerAvailable = true; + } } @Override |