Merge branch 'master' of git://github.com/brettle/AntennaPod into brettle-master
This commit is contained in:
commit
cb27c28c09
|
@ -875,14 +875,14 @@ public class PlaybackService extends Service {
|
||||||
if (AppConfig.DEBUG)
|
if (AppConfig.DEBUG)
|
||||||
Log.d(TAG, "Pausing playback.");
|
Log.d(TAG, "Pausing playback.");
|
||||||
player.pause();
|
player.pause();
|
||||||
|
cancelPositionSaver();
|
||||||
|
saveCurrentPosition();
|
||||||
|
setStatus(PlayerStatus.PAUSED);
|
||||||
if (abandonFocus) {
|
if (abandonFocus) {
|
||||||
audioManager.abandonAudioFocus(audioFocusChangeListener);
|
audioManager.abandonAudioFocus(audioFocusChangeListener);
|
||||||
pausedBecauseOfTransientAudiofocusLoss = false;
|
pausedBecauseOfTransientAudiofocusLoss = false;
|
||||||
disableSleepTimer();
|
disableSleepTimer();
|
||||||
}
|
}
|
||||||
cancelPositionSaver();
|
|
||||||
saveCurrentPosition();
|
|
||||||
setStatus(PlayerStatus.PAUSED);
|
|
||||||
stopWidgetUpdater();
|
stopWidgetUpdater();
|
||||||
stopForeground(true);
|
stopForeground(true);
|
||||||
if (shouldStream && reinit) {
|
if (shouldStream && reinit) {
|
||||||
|
|
Loading…
Reference in New Issue