summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authororionlee <orionlee@yahoo.com>2018-05-12 13:37:50 -0700
committerorionlee <orionlee@yahoo.com>2018-05-27 10:06:07 -0700
commit2058f3c0b341b483c8f653618ba338fb028f31e9 (patch)
treea11e5691c916f0a2e733506897e54a70df41ed50 /core
parentcd0d23d2606c35d783457f2a945f539382018285 (diff)
downloadAntennaPod-2058f3c0b341b483c8f653618ba338fb028f31e9.zip
#2577: ensure that during feeds update, automatic (episodes) download will
download the latest ones by waiting the feeds update complete before starting autodownload.
Diffstat (limited to 'core')
-rw-r--r--core/src/main/java/de/danoeh/antennapod/core/storage/DBTasks.java6
1 files changed, 4 insertions, 2 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 da500fd3e..d6612e404 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
@@ -198,8 +198,10 @@ public final class DBTasks {
if (ClientConfig.gpodnetCallbacks.gpodnetEnabled()) {
GpodnetSyncService.sendSyncIntent(context);
}
- Log.d(TAG, "refreshAllFeeds autodownload");
- autodownloadUndownloadedItems(context);
+ // Note: automatic download of episodes will be done but not here.
+ // Instead it is done after all feeds have been refreshed (asynchronously),
+ // in DownloadService.onDestroy()
+ // See Issue #2577 for the details of the rationale
if (callback != null) {
callback.run();