diff options
author | daniel oeh <daniel.oeh@gmail.com> | 2014-03-28 20:49:24 +0100 |
---|---|---|
committer | daniel oeh <daniel.oeh@gmail.com> | 2014-03-28 20:49:24 +0100 |
commit | 7dec032d2cfb8835e29cb939b596752380650dcb (patch) | |
tree | 4ffc0005ddcff35881bc86bd9f52a72f50095c59 | |
parent | 1048939f69a1924a8a9509b493a2f0ed46648941 (diff) | |
download | AntennaPod-7dec032d2cfb8835e29cb939b596752380650dcb.zip |
Support going back 30 seconds if less than 30 seconds have been played. closes #285
-rw-r--r-- | src/de/danoeh/antennapod/service/playback/PlaybackServiceMediaPlayer.java | 5 |
1 files 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 * <p/> * 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(); |