From b45bd0124c3da5f48e615beb5b636fdc5f8447cd Mon Sep 17 00:00:00 2001 From: daniel oeh Date: Thu, 7 Mar 2013 18:57:39 +0100 Subject: Fixed PlaybackService crash when seeking in INITIALIZING or PREPARING state --- src/de/danoeh/antennapod/service/PlaybackService.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/de/danoeh/antennapod/service/PlaybackService.java b/src/de/danoeh/antennapod/service/PlaybackService.java index 450f7f65d..a30b40ce0 100644 --- a/src/de/danoeh/antennapod/service/PlaybackService.java +++ b/src/de/danoeh/antennapod/service/PlaybackService.java @@ -1005,7 +1005,9 @@ public class PlaybackService extends Service { public void seek(int i) { saveCurrentPosition(); - if (status == PlayerStatus.INITIALIZED) { + if (status == PlayerStatus.INITIALIZED + || status == PlayerStatus.INITIALIZING + || status == PlayerStatus.PREPARING) { media.setPosition(i); setStartWhenPrepared(true); prepare(); -- cgit v1.2.3