diff options
author | Martin Fietz <Martin.Fietz@gmail.com> | 2017-01-07 15:36:56 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-07 15:36:56 +0100 |
commit | 352b6747cf8a90e7a17685135e3339f8b011b09a (patch) | |
tree | 9598b4311b30e3e56d9e88c054fec56f40986747 | |
parent | a020b7eb85280831461de9cee46b0db6b4ef79a7 (diff) | |
parent | 21605171fd3554763e46d9a64306ab4569f40ac3 (diff) | |
download | AntennaPod-352b6747cf8a90e7a17685135e3339f8b011b09a.zip |
Merge pull request #2234 from CedricCabessa/no-pause-on-cast
don't pause while casting if headset is disconnected
-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; } |