From 04cc79c81967ce6a82873d9bac1bf73625cf84be Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Wed, 15 Oct 2014 22:04:09 -0700 Subject: Only start proxy service if online, otherwise causes download to be attempted in offline mode --- src/github/daneren2005/dsub/service/DownloadService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/github') 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(); -- cgit v1.2.3