aboutsummaryrefslogtreecommitdiff
path: root/src/github
diff options
context:
space:
mode:
Diffstat (limited to 'src/github')
-rw-r--r--src/github/daneren2005/dsub/service/DownloadService.java6
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);