Abandon audio focus after playback has completed
This commit is contained in:
parent
a5866b896a
commit
aeed5871e4
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue