aboutsummaryrefslogtreecommitdiff
path: root/src/github
diff options
context:
space:
mode:
authordaneren2005 <daneren2005@gmail.com>2013-10-18 11:13:23 -0700
committerdaneren2005 <daneren2005@gmail.com>2013-10-18 11:13:23 -0700
commit59d8699bd00be1d70a8c1e3488882ab78c3840c1 (patch)
tree51e5a4a3e95469d64eb66878695d177975286d3a /src/github
parent80d5c75a6ef79fda1040df9c89036d24f3d54780 (diff)
downloaddsub-59d8699bd00be1d70a8c1e3488882ab78c3840c1.tar.gz
dsub-59d8699bd00be1d70a8c1e3488882ab78c3840c1.tar.bz2
dsub-59d8699bd00be1d70a8c1e3488882ab78c3840c1.zip
Add isOffline check to checkDownloads
Diffstat (limited to 'src/github')
-rw-r--r--src/github/daneren2005/dsub/service/DownloadServiceImpl.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/github/daneren2005/dsub/service/DownloadServiceImpl.java b/src/github/daneren2005/dsub/service/DownloadServiceImpl.java
index 8db1c9cb..9c58ed2f 100644
--- a/src/github/daneren2005/dsub/service/DownloadServiceImpl.java
+++ b/src/github/daneren2005/dsub/service/DownloadServiceImpl.java
@@ -1347,7 +1347,7 @@ public class DownloadServiceImpl extends Service implements DownloadService {
}
protected synchronized void checkDownloads() {
- if (!Util.isExternalStoragePresent() || !lifecycleSupport.isExternalStorageAvailable()) {
+ if (!Util.isExternalStoragePresent() || !lifecycleSupport.isExternalStorageAvailable() || Util.isOffline(this)) {
return;
}