summaryrefslogtreecommitdiff
path: root/app/src/main/java/de/danoeh/antennapod
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main/java/de/danoeh/antennapod')
-rw-r--r--app/src/main/java/de/danoeh/antennapod/ui/episodeslist/EpisodeMultiSelectActionHandler.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/app/src/main/java/de/danoeh/antennapod/ui/episodeslist/EpisodeMultiSelectActionHandler.java b/app/src/main/java/de/danoeh/antennapod/ui/episodeslist/EpisodeMultiSelectActionHandler.java
index 2a9f76939..76ed47de5 100644
--- a/app/src/main/java/de/danoeh/antennapod/ui/episodeslist/EpisodeMultiSelectActionHandler.java
+++ b/app/src/main/java/de/danoeh/antennapod/ui/episodeslist/EpisodeMultiSelectActionHandler.java
@@ -91,12 +91,14 @@ public class EpisodeMultiSelectActionHandler {
private void downloadChecked(List<FeedItem> items) {
// download the check episodes in the same order as they are currently displayed
+ int downloaded = 0;
for (FeedItem episode : items) {
- if (episode.hasMedia() && !episode.getFeed().isLocalFeed()) {
+ if (episode.hasMedia() && !episode.isDownloaded() && !episode.getFeed().isLocalFeed()) {
DownloadServiceInterface.get().download(activity, episode);
+ downloaded++;
}
}
- showMessage(R.plurals.downloading_batch_label, items.size());
+ showMessage(R.plurals.downloading_batch_label, downloaded);
}
private void deleteChecked(List<FeedItem> items) {