Merge branch 'master' of git://github.com/brettle/AntennaPod into brettle-master

This commit is contained in:
daniel oeh 2013-08-14 14:53:42 +02:00
commit cb27c28c09
1 changed files with 3 additions and 3 deletions

View File

@ -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) {