aboutsummaryrefslogtreecommitdiff
path: root/subsonic-android/src
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2013-03-11 07:50:08 -0700
committerScott Jackson <daneren2005@gmail.com>2013-03-11 07:50:08 -0700
commit26caf5a01f0f1a5eff89c15c67eda5148d47a261 (patch)
tree9c11df510a396acdfb6c681511265648556a35f8 /subsonic-android/src
parente641470a614f5c69c4fbf2574643691060ae0f47 (diff)
downloaddsub-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.java18
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