mirror of
https://github.com/AntennaPod/AntennaPod.git
synced 2025-12-01 12:31:45 +00:00
Fixed crash when losing audio focus
This commit is contained in:
@ -325,6 +325,9 @@ public class PlaybackService extends Service {
|
||||
if (player.isPlaying()) {
|
||||
Log.d(TAG, "Pausing playback.");
|
||||
player.pause();
|
||||
if (positionSaver != null) {
|
||||
positionSaver.cancel(true);
|
||||
}
|
||||
saveCurrentPosition();
|
||||
setStatus(PlayerStatus.PAUSED);
|
||||
stopForeground(true);
|
||||
|
||||
Reference in New Issue
Block a user