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) {
|
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
|
||||||
|
|
Loading…
Reference in New Issue