diff options
author | daniel oeh <daniel.oeh@gmail.com> | 2012-09-23 15:26:32 +0200 |
---|---|---|
committer | daniel oeh <daniel.oeh@gmail.com> | 2012-09-23 15:26:32 +0200 |
commit | aeed5871e447d5d13f4daeaf0543304000158af9 (patch) | |
tree | 7d58fb8d214abd613b013581b1287c922c8f3668 /src/de/danoeh/antennapod | |
parent | a5866b896ad52590656a784c726a77703148bf9a (diff) | |
download | AntennaPod-aeed5871e447d5d13f4daeaf0543304000158af9.zip |
Abandon audio focus after playback has completed
Diffstat (limited to 'src/de/danoeh/antennapod')
-rw-r--r-- | src/de/danoeh/antennapod/service/PlaybackService.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/de/danoeh/antennapod/service/PlaybackService.java b/src/de/danoeh/antennapod/service/PlaybackService.java index dcd157719..990d499b4 100644 --- a/src/de/danoeh/antennapod/service/PlaybackService.java +++ b/src/de/danoeh/antennapod/service/PlaybackService.java @@ -616,6 +616,7 @@ public class PlaybackService extends Service { public void onCompletion(MediaPlayer mp) { if (AppConfig.DEBUG) Log.d(TAG, "Playback completed"); + audioManager.abandonAudioFocus(audioFocusChangeListener); SharedPreferences prefs = PreferenceManager .getDefaultSharedPreferences(getApplicationContext()); // Save state |