Merge pull request #2689 from orionlee/auto_download_fix_during_feed_update_2577

Ensure that during feeds update, automatic (episodes) download the latest ones
This commit is contained in:
Martin Fietz 2018-09-30 13:31:21 +02:00 committed by GitHub
commit e1422acae3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -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();