diff options
author | Domingos Lopes <domingos86lopes+github@gmail.com> | 2016-04-30 02:02:00 -0400 |
---|---|---|
committer | Domingos Lopes <domingos86lopes+github@gmail.com> | 2016-07-25 23:16:28 -0400 |
commit | 12d62d55191277252653c5210bd955357692373c (patch) | |
tree | 70a25669796e8ab4f074bc1afbed2a5cb037202c /core/src/play | |
parent | e94219ce26084fba304e7dc87fab074b74d8de1b (diff) | |
download | AntennaPod-12d62d55191277252653c5210bd955357692373c.zip |
only allow for endPlayback with wasSkipped==false internally
Diffstat (limited to 'core/src/play')
-rw-r--r-- | core/src/play/java/de/danoeh/antennapod/core/service/playback/PlaybackServiceFlavorHelper.java | 3 | ||||
-rw-r--r-- | core/src/play/java/de/danoeh/antennapod/core/service/playback/RemotePSMP.java | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/core/src/play/java/de/danoeh/antennapod/core/service/playback/PlaybackServiceFlavorHelper.java b/core/src/play/java/de/danoeh/antennapod/core/service/playback/PlaybackServiceFlavorHelper.java index 93431d466..234f27ef8 100644 --- a/core/src/play/java/de/danoeh/antennapod/core/service/playback/PlaybackServiceFlavorHelper.java +++ b/core/src/play/java/de/danoeh/antennapod/core/service/playback/PlaybackServiceFlavorHelper.java @@ -182,7 +182,8 @@ public class PlaybackServiceFlavorHelper { boolean wasLaunched) { PlaybackServiceMediaPlayer mediaPlayer = callback.getMediaPlayer(); if (mediaPlayer != null) { - mediaPlayer.endPlayback(true, true); + //TODO change implementation to new protocol +// mediaPlayer.endPlayback(true, true); mediaPlayer.shutdownQuietly(); } mediaPlayer = newPlayer; diff --git a/core/src/play/java/de/danoeh/antennapod/core/service/playback/RemotePSMP.java b/core/src/play/java/de/danoeh/antennapod/core/service/playback/RemotePSMP.java index 4262b8a70..c051cc435 100644 --- a/core/src/play/java/de/danoeh/antennapod/core/service/playback/RemotePSMP.java +++ b/core/src/play/java/de/danoeh/antennapod/core/service/playback/RemotePSMP.java @@ -557,7 +557,7 @@ public class RemotePSMP extends PlaybackServiceMediaPlayer { } @Override - public void endPlayback(boolean wasSkipped, boolean switchingPlayers) { + protected void endPlayback(boolean wasSkipped) { Log.d(TAG, "endPlayback() called"); boolean isPlaying = playerStatus == PlayerStatus.PLAYING; try { |