diff options
author | orionlee <orionlee@yahoo.com> | 2018-05-12 13:37:50 -0700 |
---|---|---|
committer | orionlee <orionlee@yahoo.com> | 2018-05-27 10:06:07 -0700 |
commit | 2058f3c0b341b483c8f653618ba338fb028f31e9 (patch) | |
tree | a11e5691c916f0a2e733506897e54a70df41ed50 /core | |
parent | cd0d23d2606c35d783457f2a945f539382018285 (diff) | |
download | AntennaPod-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.java | 6 |
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(); |