summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorTony Tam <149837+tonytamsf@users.noreply.github.com>2021-12-28 11:14:19 -0800
committerGitHub <noreply@github.com>2021-12-28 20:14:19 +0100
commit7cd813dc23193feaa93753ee62aae9a5caf4f1ac (patch)
tree4d3acdc00b62c99fd1561724b64d7459a5aa1630 /core
parentb25ed642503119f0c49d05cde643ec9a27a91d5a (diff)
downloadantennapod-7cd813dc23193feaa93753ee62aae9a5caf4f1ac.zip
resume playing only if the user unplugs via wired headset or bluetooth while episode in progress (#5611)
Diffstat (limited to 'core')
-rw-r--r--core/src/main/java/de/danoeh/antennapod/core/service/playback/PlaybackService.java2
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 f192b1675..8ba5215df 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
@@ -1532,8 +1532,8 @@ public class PlaybackService extends MediaBrowserServiceCompat {
*/
private void pauseIfPauseOnDisconnect() {
Log.d(TAG, "pauseIfPauseOnDisconnect()");
+ transientPause = (mediaPlayer.getPlayerStatus() == PlayerStatus.PLAYING);
if (UserPreferences.isPauseOnHeadsetDisconnect() && !isCasting()) {
- transientPause = true;
mediaPlayer.pause(!UserPreferences.isPersistNotify(), false);
}
}