From 7dec032d2cfb8835e29cb939b596752380650dcb Mon Sep 17 00:00:00 2001 From: daniel oeh Date: Fri, 28 Mar 2014 20:49:24 +0100 Subject: [PATCH] Support going back 30 seconds if less than 30 seconds have been played. closes #285 --- .../service/playback/PlaybackServiceMediaPlayer.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/de/danoeh/antennapod/service/playback/PlaybackServiceMediaPlayer.java b/src/de/danoeh/antennapod/service/playback/PlaybackServiceMediaPlayer.java index 9e4624794..89be5e5ee 100644 --- a/src/de/danoeh/antennapod/service/playback/PlaybackServiceMediaPlayer.java +++ b/src/de/danoeh/antennapod/service/playback/PlaybackServiceMediaPlayer.java @@ -385,14 +385,13 @@ public class PlaybackServiceMediaPlayer { /** * Seeks to the specified position. If the PSMP object is in an invalid state, this method will do nothing. - * Invalid time values (< 0) will be ignored. + * @param t The position to seek to in milliseconds. t < 0 will be interpreted as t = 0 *

* This method is executed on the caller's thread. */ private void seekToSync(int t) { if (t < 0) { - if (AppConfig.DEBUG) Log.d(TAG, "Received invalid value for t"); - return; + t = 0; } playerLock.lock();