From 5bd3698e81c3e12d2abaebb4ff6acb9190bcc322 Mon Sep 17 00:00:00 2001 From: ByteHamster Date: Wed, 20 Nov 2019 19:52:19 +0100 Subject: [PATCH] Fix download order list --- .../core/service/download/DownloadService.java | 13 +++++-------- 1 file changed, 5 insertions(+), 8 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 cf0502c92..87b92c1e4 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 @@ -459,15 +459,12 @@ public class DownloadService extends Service { Downloader downloader = downloaderFactory.create(request); if (downloader != null) { numberOfDownloads.incrementAndGet(); - // smaller rss feeds before bigger media files - if (request.getFeedfileType() == Feed.FEEDFILETYPE_FEED) { - downloads.add(0, downloader); - } else { - if (isEnqueued(request, itemsEnqueued)) { - request.setMediaEnqueued(true); - } - downloads.add(downloader); + + if (request.getFeedfileType() == FeedMedia.FEEDFILETYPE_FEEDMEDIA + && isEnqueued(request, itemsEnqueued)) { + request.setMediaEnqueued(true); } + downloads.add(downloader); downloadExecutor.submit(downloader); postDownloaders();