aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2015-01-18 15:09:58 -0800
committerScott Jackson <daneren2005@gmail.com>2015-01-18 15:09:58 -0800
commit5104fa7fa27a82a29e53177424729072ab8dc219 (patch)
treea7f6cbb7eb939fd9f09e3649aea11927e15693af /src
parent3422edac972bbc3c9aa8da10b2c7066c61cc714b (diff)
downloaddsub-5104fa7fa27a82a29e53177424729072ab8dc219.tar.gz
dsub-5104fa7fa27a82a29e53177424729072ab8dc219.tar.bz2
dsub-5104fa7fa27a82a29e53177424729072ab8dc219.zip
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+
Diffstat (limited to 'src')
-rw-r--r--src/github/daneren2005/dsub/service/DownloadService.java5
1 files changed, 5 insertions, 0 deletions
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;