diff options
author | Scott Jackson <daneren2005@gmail.com> | 2014-03-19 22:50:10 -0700 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2014-03-19 22:50:10 -0700 |
commit | 2ae6f6067f89810e7a1970bd1ae1b4d2e9e93461 (patch) | |
tree | 9b6ceef83f766f7bf1e4761d1c365c871398d9b6 | |
parent | 9eafac97066552fb87462061354f275ef41ecb4e (diff) | |
download | dsub-2ae6f6067f89810e7a1970bd1ae1b4d2e9e93461.tar.gz dsub-2ae6f6067f89810e7a1970bd1ae1b4d2e9e93461.tar.bz2 dsub-2ae6f6067f89810e7a1970bd1ae1b4d2e9e93461.zip |
Fix crash on Froyo
-rw-r--r-- | src/github/daneren2005/dsub/service/DownloadService.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/github/daneren2005/dsub/service/DownloadService.java b/src/github/daneren2005/dsub/service/DownloadService.java index aa5d8845..2d82e5fb 100644 --- a/src/github/daneren2005/dsub/service/DownloadService.java +++ b/src/github/daneren2005/dsub/service/DownloadService.java @@ -164,7 +164,11 @@ public class DownloadService extends Service { return false; } }); - audioSessionId = mediaPlayer.getAudioSessionId(); + try { + audioSessionId = mediaPlayer.getAudioSessionId(); + } catch(Throwable e) { + // Froyo or lower + } try { Intent i = new Intent(AudioEffect.ACTION_OPEN_AUDIO_EFFECT_CONTROL_SESSION); |