diff options
author | Martin Fietz <Martin.Fietz@gmail.com> | 2017-05-31 17:36:55 +0200 |
---|---|---|
committer | H. Lehmann <ByteHamster@users.noreply.github.com> | 2017-06-04 13:43:40 +0200 |
commit | dc6141ea1dfcfdef11127d7ac61ae4924a2ed450 (patch) | |
tree | 886c9eea98a2d72374d98d76fd88216879f9f12d /core | |
parent | 48edae7db673c9582d6716919f1d14568252dc14 (diff) | |
download | AntennaPod-dc6141ea1dfcfdef11127d7ac61ae4924a2ed450.zip |
When automatically updating feeds, check if a network connection is available first
Diffstat (limited to 'core')
-rw-r--r-- | core/src/main/java/de/danoeh/antennapod/core/receiver/FeedUpdateReceiver.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/main/java/de/danoeh/antennapod/core/receiver/FeedUpdateReceiver.java b/core/src/main/java/de/danoeh/antennapod/core/receiver/FeedUpdateReceiver.java index e0abe0efb..9bbeb7c88 100644 --- a/core/src/main/java/de/danoeh/antennapod/core/receiver/FeedUpdateReceiver.java +++ b/core/src/main/java/de/danoeh/antennapod/core/receiver/FeedUpdateReceiver.java @@ -21,7 +21,7 @@ public class FeedUpdateReceiver extends BroadcastReceiver { public void onReceive(Context context, Intent intent) { Log.d(TAG, "Received intent"); ClientConfig.initialize(context); - if (NetworkUtils.isDownloadAllowed()) { + if (NetworkUtils.networkAvailable() && NetworkUtils.isDownloadAllowed()) { DBTasks.refreshAllFeeds(context, null); } else { Log.d(TAG, "Blocking automatic update: no wifi available / no mobile updates allowed"); |