diff options
author | Scott Jackson <daneren2005@gmail.com> | 2014-10-15 22:04:09 -0700 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2014-10-15 22:04:09 -0700 |
commit | 04cc79c81967ce6a82873d9bac1bf73625cf84be (patch) | |
tree | 4a6a157537ebd4cea7a0d71d0bfbe11b8035b79e /src/github | |
parent | 82427ae37d5eddb2dca96749828a8760004ccbcf (diff) | |
download | dsub-04cc79c81967ce6a82873d9bac1bf73625cf84be.tar.gz dsub-04cc79c81967ce6a82873d9bac1bf73625cf84be.tar.bz2 dsub-04cc79c81967ce6a82873d9bac1bf73625cf84be.zip |
Only start proxy service if online, otherwise causes download to be attempted in offline mode
Diffstat (limited to 'src/github')
-rw-r--r-- | src/github/daneren2005/dsub/service/DownloadService.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/github/daneren2005/dsub/service/DownloadService.java b/src/github/daneren2005/dsub/service/DownloadService.java index 49a3bec1..fe390dc4 100644 --- a/src/github/daneren2005/dsub/service/DownloadService.java +++ b/src/github/daneren2005/dsub/service/DownloadService.java @@ -1393,7 +1393,7 @@ public class DownloadService extends Service { mediaPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC); } String dataSource = file.getAbsolutePath(); - if(isPartial) { + if(isPartial && !Util.isOffline(this)) { if (proxy == null) { proxy = new BufferProxy(this); proxy.start(); |