diff options
author | Domingos Lopes <domingos86lopes+github@gmail.com> | 2016-05-04 08:20:01 -0400 |
---|---|---|
committer | Domingos Lopes <domingos86lopes+github@gmail.com> | 2016-07-25 23:16:28 -0400 |
commit | d18cf41f204de583f066635d4e380f465a419029 (patch) | |
tree | 4759432d221233149fa8e1ceaca14411b5f4c8fc /core/src/play | |
parent | 12d62d55191277252653c5210bd955357692373c (diff) | |
download | AntennaPod-d18cf41f204de583f066635d4e380f465a419029.zip |
move auto flattr and gpodnet play action inside FeedMedia
Diffstat (limited to 'core/src/play')
-rw-r--r-- | core/src/play/java/de/danoeh/antennapod/core/cast/RemoteMedia.java | 8 | ||||
-rw-r--r-- | core/src/play/java/de/danoeh/antennapod/core/service/playback/PlaybackServiceFlavorHelper.java | 4 |
2 files changed, 9 insertions, 3 deletions
diff --git a/core/src/play/java/de/danoeh/antennapod/core/cast/RemoteMedia.java b/core/src/play/java/de/danoeh/antennapod/core/cast/RemoteMedia.java index e2d8f8ad5..a3ac87062 100644 --- a/core/src/play/java/de/danoeh/antennapod/core/cast/RemoteMedia.java +++ b/core/src/play/java/de/danoeh/antennapod/core/cast/RemoteMedia.java @@ -1,5 +1,6 @@ package de.danoeh.antennapod.core.cast; +import android.content.Context; import android.content.SharedPreferences; import android.net.Uri; import android.os.Parcel; @@ -255,7 +256,12 @@ public class RemoteMedia implements Playable { } @Override - public void onPlaybackCompleted() { + public void onPlaybackPause(Context context) { + // no-op + } + + @Override + public void onPlaybackCompleted(Context context) { // no-op } 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 234f27ef8..55922725f 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 @@ -108,7 +108,7 @@ public class PlaybackServiceFlavorHelper { // to the latest position. PlaybackServiceMediaPlayer mediaPlayer = callback.getMediaPlayer(); if (mediaPlayer != null) { - callback.saveCurrentPosition(false, 0); + callback.saveCurrentPosition(); infoBeforeCastDisconnection = mediaPlayer.getPSMPInfo(); if (reason != BaseCastManager.DISCONNECT_REASON_EXPLICIT && infoBeforeCastDisconnection.playerStatus == PlayerStatus.PLAYING) { @@ -160,7 +160,7 @@ public class PlaybackServiceFlavorHelper { // could be pause, but this way we make sure the new player will get the correct position, // since pause runs asynchronously and we could be directing the new player to play even before // the old player gives us back the position. - callback.saveCurrentPosition(false, 0); + callback.saveCurrentPosition(); } } if (info == null) { |