diff options
author | daniel oeh <daniel.oeh@gmail.com> | 2013-03-07 18:57:39 +0100 |
---|---|---|
committer | daniel oeh <daniel.oeh@gmail.com> | 2013-03-07 18:57:39 +0100 |
commit | b45bd0124c3da5f48e615beb5b636fdc5f8447cd (patch) | |
tree | 1e1e888844b7453c861c88e7308d01cad33c5b52 /src | |
parent | 98dec67b72005ea346fe9ac152fc3500b28e4795 (diff) | |
download | AntennaPod-b45bd0124c3da5f48e615beb5b636fdc5f8447cd.zip |
Fixed PlaybackService crash when seeking in INITIALIZING or PREPARING
state
Diffstat (limited to 'src')
-rw-r--r-- | src/de/danoeh/antennapod/service/PlaybackService.java | 4 |
1 files changed, 3 insertions, 1 deletions
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(); |