diff options
author | orionlee <orionlee@yahoo.com> | 2018-11-21 11:08:50 -0800 |
---|---|---|
committer | orionlee <orionlee@yahoo.com> | 2018-11-21 11:08:50 -0800 |
commit | 1dc366544eca621537efddb7d7cc7b6eea4ca8d8 (patch) | |
tree | e0692b24d857d3c6b6393a393f72377307ea65dc /core | |
parent | 68b245701e2ff11f23d2bdf1145e8189dc3709ac (diff) | |
download | AntennaPod-1dc366544eca621537efddb7d7cc7b6eea4ca8d8.zip |
#2906: fix automatic feed update (by time interval) incorrectly run in airplane mode
Diffstat (limited to 'core')
-rw-r--r-- | core/src/main/java/de/danoeh/antennapod/core/storage/DBTasks.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/src/main/java/de/danoeh/antennapod/core/storage/DBTasks.java b/core/src/main/java/de/danoeh/antennapod/core/storage/DBTasks.java index ba7d4b47b..bf13d1563 100644 --- a/core/src/main/java/de/danoeh/antennapod/core/storage/DBTasks.java +++ b/core/src/main/java/de/danoeh/antennapod/core/storage/DBTasks.java @@ -34,6 +34,7 @@ import de.danoeh.antennapod.core.service.download.DownloadStatus; import de.danoeh.antennapod.core.service.playback.PlaybackService; import de.danoeh.antennapod.core.util.Converter; import de.danoeh.antennapod.core.util.DownloadError; +import de.danoeh.antennapod.core.util.FeedUpdateUtils; import de.danoeh.antennapod.core.util.IntentUtils; import de.danoeh.antennapod.core.util.LongList; import de.danoeh.antennapod.core.util.comparator.FeedItemPubdateComparator; @@ -338,7 +339,7 @@ public final class DBTasks { Log.d(TAG, "last refresh: " + Converter.getDurationStringLocalized(context, System.currentTimeMillis() - lastRefresh) + " ago"); if(lastRefresh <= System.currentTimeMillis() - interval) { - DBTasks.refreshAllFeeds(context, null); + FeedUpdateUtils.startAutoUpdate(context, null); } } |