Remove selective downloading of new things and just let auto-download do it's thing.
refs AntennaPod/AntennaPod#1009
This commit is contained in:
parent
d921ab6f22
commit
93273748b1
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue