From 5104fa7fa27a82a29e53177424729072ab8dc219 Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Sun, 18 Jan 2015 15:09:58 -0800 Subject: If we have a proxy going when we try to seek, try restarting at that position instead since seeking won't work on Android 4.4+ --- src/github/daneren2005/dsub/service/DownloadService.java | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/github/daneren2005/dsub/service/DownloadService.java b/src/github/daneren2005/dsub/service/DownloadService.java index 87144402..5732ec83 100644 --- a/src/github/daneren2005/dsub/service/DownloadService.java +++ b/src/github/daneren2005/dsub/service/DownloadService.java @@ -898,6 +898,11 @@ public class DownloadService extends Service { if (remoteState != LOCAL) { remoteController.changePosition(position / 1000); } else { + if(proxy != null && currentPlaying.isCompleteFileAvailable()) { + doPlay(currentPlaying, position, playerState == STARTED); + return; + } + mediaPlayer.seekTo(position); cachedPosition = position; subtractPosition = 0; -- cgit v1.2.3