diff options
author | Cédric Cabessa <ced@ryick.net> | 2017-01-07 14:57:12 +0100 |
---|---|---|
committer | Cédric Cabessa <ced@ryick.net> | 2017-01-07 15:04:29 +0100 |
commit | 21605171fd3554763e46d9a64306ab4569f40ac3 (patch) | |
tree | 9598b4311b30e3e56d9e88c054fec56f40986747 /core | |
parent | a020b7eb85280831461de9cee46b0db6b4ef79a7 (diff) | |
download | AntennaPod-21605171fd3554763e46d9a64306ab4569f40ac3.zip |
don't pause while casting if headset is disconnected
User was listening to a podcast with headset, then get back home
and want to listen to the rest of the podcast on a chromecast.
If he unplug the headset while the audio is casting, we should not pause.
Diffstat (limited to 'core')
-rw-r--r-- | core/src/main/java/de/danoeh/antennapod/core/service/playback/PlaybackService.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/main/java/de/danoeh/antennapod/core/service/playback/PlaybackService.java b/core/src/main/java/de/danoeh/antennapod/core/service/playback/PlaybackService.java index 39d79e521..0f7d7265e 100644 --- a/core/src/main/java/de/danoeh/antennapod/core/service/playback/PlaybackService.java +++ b/core/src/main/java/de/danoeh/antennapod/core/service/playback/PlaybackService.java @@ -1433,7 +1433,7 @@ public class PlaybackService extends MediaBrowserServiceCompat { * Pauses playback if PREF_PAUSE_ON_HEADSET_DISCONNECT was set to true. */ private void pauseIfPauseOnDisconnect() { - if (UserPreferences.isPauseOnHeadsetDisconnect()) { + if (UserPreferences.isPauseOnHeadsetDisconnect() && !isCasting()) { if (mediaPlayer.getPlayerStatus() == PlayerStatus.PLAYING) { transientPause = true; } |