aboutsummaryrefslogtreecommitdiff
path: root/src/github/daneren2005
diff options
context:
space:
mode:
authordaneren2005 <daneren2005@gmail.com>2013-10-25 14:05:33 -0700
committerdaneren2005 <daneren2005@gmail.com>2013-10-25 14:05:33 -0700
commitc3c8284b70d982e72ea4a8d57ad829380524e97f (patch)
treed39f7351090219a05d65437e218254fc6e78c4f6 /src/github/daneren2005
parent8217d372ec94b22330e12809d0d9b086e8fbcd0b (diff)
downloaddsub-c3c8284b70d982e72ea4a8d57ad829380524e97f.tar.gz
dsub-c3c8284b70d982e72ea4a8d57ad829380524e97f.tar.bz2
dsub-c3c8284b70d982e72ea4a8d57ad829380524e97f.zip
Fix offline shuffle mode
Diffstat (limited to 'src/github/daneren2005')
-rw-r--r--src/github/daneren2005/dsub/service/DownloadServiceImpl.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/github/daneren2005/dsub/service/DownloadServiceImpl.java b/src/github/daneren2005/dsub/service/DownloadServiceImpl.java
index 9c58ed2f..fbeba752 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() || Util.isOffline(this)) {
+ if (!Util.isExternalStoragePresent() || !lifecycleSupport.isExternalStorageAvailable()) {
return;
}
@@ -1355,7 +1355,7 @@ public class DownloadServiceImpl extends Service implements DownloadService {
checkShufflePlay();
}
- if (remoteState != RemoteControlState.LOCAL || !Util.isNetworkConnected(this)) {
+ if (remoteState != RemoteControlState.LOCAL || !Util.isNetworkConnected(this) || Util.isOffline(this)) {
return;
}