summaryrefslogtreecommitdiff
path: root/app/src
diff options
context:
space:
mode:
authorH. Lehmann <ByteHamster@users.noreply.github.com>2020-01-05 14:51:58 +0100
committerGitHub <noreply@github.com>2020-01-05 14:51:58 +0100
commita8b126221c3ae4a4e449cd090963e2403e2c3dd3 (patch)
tree6701f1dd486e9dfe7458e954d44efad307cc9b0f /app/src
parent71d281a818d150a4b628fcb40c48b03a73cf956d (diff)
parent22c891ab5b28ed4c43ee0ed65042aafdb4bad00c (diff)
downloadAntennaPod-a8b126221c3ae4a4e449cd090963e2403e2c3dd3.zip
Merge pull request #3730 from txtd/develop
Check if an episode has media before adding it to download batch
Diffstat (limited to 'app/src')
-rw-r--r--app/src/main/java/de/danoeh/antennapod/dialog/EpisodesApplyActionFragment.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/src/main/java/de/danoeh/antennapod/dialog/EpisodesApplyActionFragment.java b/app/src/main/java/de/danoeh/antennapod/dialog/EpisodesApplyActionFragment.java
index bd33bdb19..2e1cc2c7d 100644
--- a/app/src/main/java/de/danoeh/antennapod/dialog/EpisodesApplyActionFragment.java
+++ b/app/src/main/java/de/danoeh/antennapod/dialog/EpisodesApplyActionFragment.java
@@ -480,7 +480,7 @@ public class EpisodesApplyActionFragment extends Fragment {
// download the check episodes in the same order as they are currently displayed
List<FeedItem> toDownload = new ArrayList<>(checkedIds.size());
for(FeedItem episode : episodes) {
- if(checkedIds.contains(episode.getId())) {
+ if(checkedIds.contains(episode.getId()) && episode.hasMedia()) {
toDownload.add(episode);
}
}
@@ -490,7 +490,7 @@ public class EpisodesApplyActionFragment extends Fragment {
e.printStackTrace();
DownloadRequestErrorDialogCreator.newRequestErrorDialog(getActivity(), e.getMessage());
}
- close(R.plurals.downloading_batch_label, checkedIds.size());
+ close(R.plurals.downloading_batch_label, toDownload.size());
}
private void deleteChecked() {