Abandon audio focus after playback has completed

This commit is contained in:
daniel oeh 2012-09-23 15:26:32 +02:00
parent a5866b896a
commit aeed5871e4
1 changed files with 1 additions and 0 deletions

View File

@ -616,6 +616,7 @@ public class PlaybackService extends Service {
public void onCompletion(MediaPlayer mp) { public void onCompletion(MediaPlayer mp) {
if (AppConfig.DEBUG) if (AppConfig.DEBUG)
Log.d(TAG, "Playback completed"); Log.d(TAG, "Playback completed");
audioManager.abandonAudioFocus(audioFocusChangeListener);
SharedPreferences prefs = PreferenceManager SharedPreferences prefs = PreferenceManager
.getDefaultSharedPreferences(getApplicationContext()); .getDefaultSharedPreferences(getApplicationContext());
// Save state // Save state