summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Hennen <tom.hennen@gmail.com>2015-08-25 20:03:58 -0400
committerTom Hennen <tom.hennen@gmail.com>2015-08-25 20:03:58 -0400
commit93273748b18689160c5d0e4cc3e34ba851f06dac (patch)
tree035091a9059e8fac0f1473ac20a024e3e474efbb
parentd921ab6f22ab0d4325906027305293a803f9cacb (diff)
downloadAntennaPod-93273748b18689160c5d0e4cc3e34ba851f06dac.zip
Remove selective downloading of new things and just let auto-download do it's thing.
refs AntennaPod/AntennaPod#1009
-rw-r--r--core/src/main/java/de/danoeh/antennapod/core/service/download/DownloadService.java12
1 files changed, 2 insertions, 10 deletions
diff --git a/core/src/main/java/de/danoeh/antennapod/core/service/download/DownloadService.java b/core/src/main/java/de/danoeh/antennapod/core/service/download/DownloadService.java
index 4fdaf6843..77772f8e0 100644
--- a/core/src/main/java/de/danoeh/antennapod/core/service/download/DownloadService.java
+++ b/core/src/main/java/de/danoeh/antennapod/core/service/download/DownloadService.java
@@ -325,16 +325,8 @@ public class DownloadService extends Service {
cancelNotificationUpdater();
unregisterReceiver(cancelDownloadReceiver);
- // TODO: I'm not sure this is actually needed.
- // We could just invoke the autodownloadUndownloadeditems method
- // and it would get everything it's supposed to. By sending it the
- // items in newMediaFiles we're overriding the download algorithm,
- // which is not something we should probably do.
- if (!newMediaFiles.isEmpty()) {
- Log.d(TAG, "newMediaFiles exist, autodownload them");
- DBTasks.autodownloadUndownloadedItems(getApplicationContext(),
- ArrayUtils.toPrimitive(newMediaFiles.toArray(new Long[newMediaFiles.size()])));
- }
+ // start auto download in case anything new has shown up
+ DBTasks.autodownloadUndownloadedItems(getApplicationContext());
}
@SuppressLint("NewApi")