diff options
author | H. Lehmann <ByteHamster@users.noreply.github.com> | 2019-09-29 12:50:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-29 12:50:47 +0200 |
commit | c614e6e29c1da9db417b285dcb4d6e3c8789f64f (patch) | |
tree | c4d94a0b6f94cad6773d533b440eff5d61cccc72 /core | |
parent | cf367c02afed1614cb06b99311eae8debfaccbfc (diff) | |
parent | 3beda73e3cc9ba391285c0c474b9b969d89a0fd8 (diff) | |
download | AntennaPod-c614e6e29c1da9db417b285dcb4d6e3c8789f64f.zip |
Merge pull request #3466 from ByteHamster/no-reinit-on-pause
Do not reinit on pause
Diffstat (limited to 'core')
-rw-r--r-- | core/src/main/java/de/danoeh/antennapod/core/service/playback/PlaybackService.java | 4 |
1 files changed, 2 insertions, 2 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 a3535616e..4fd2d5e64 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 @@ -566,7 +566,7 @@ public class PlaybackService extends MediaBrowserServiceCompat { case KeyEvent.KEYCODE_HEADSETHOOK: case KeyEvent.KEYCODE_MEDIA_PLAY_PAUSE: if (status == PlayerStatus.PLAYING) { - mediaPlayer.pause(!UserPreferences.isPersistNotify(), true); + mediaPlayer.pause(!UserPreferences.isPersistNotify(), false); } else if (status == PlayerStatus.PAUSED || status == PlayerStatus.PREPARED) { mediaPlayer.resume(); } else if (status == PlayerStatus.PREPARING) { @@ -590,7 +590,7 @@ public class PlaybackService extends MediaBrowserServiceCompat { return true; case KeyEvent.KEYCODE_MEDIA_PAUSE: if (status == PlayerStatus.PLAYING) { - mediaPlayer.pause(!UserPreferences.isPersistNotify(), true); + mediaPlayer.pause(!UserPreferences.isPersistNotify(), false); } return true; |