summaryrefslogtreecommitdiff
path: root/app/src/main/java/de/danoeh/antennapod/dialog
diff options
context:
space:
mode:
authorTom Hennen <tom.hennen@gmail.com>2015-11-29 08:39:51 -0500
committerTom Hennen <tom.hennen@gmail.com>2015-11-29 08:39:51 -0500
commit2d32a39e8de60ff8900046d5409796d159af3816 (patch)
treed16a59ddf9fa71fe8f72b902d160b548af33cef4 /app/src/main/java/de/danoeh/antennapod/dialog
parent87daa77ce4fdac407664d0e748d54410fc394ec9 (diff)
downloadAntennaPod-2d32a39e8de60ff8900046d5409796d159af3816.zip
resolve 'no empty constructor' error
Diffstat (limited to 'app/src/main/java/de/danoeh/antennapod/dialog')
-rw-r--r--app/src/main/java/de/danoeh/antennapod/dialog/EpisodesApplyActionFragment.java15
1 files changed, 10 insertions, 5 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 c5b6ddb65..8381ecc6f 100644
--- a/app/src/main/java/de/danoeh/antennapod/dialog/EpisodesApplyActionFragment.java
+++ b/app/src/main/java/de/danoeh/antennapod/dialog/EpisodesApplyActionFragment.java
@@ -11,7 +11,6 @@ import android.view.MenuInflater;
import android.view.MenuItem;
import android.view.View;
import android.view.ViewGroup;
-import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.ListView;
@@ -23,7 +22,6 @@ import com.joanzapata.iconify.fonts.FontAwesomeIcons;
import java.util.ArrayList;
import java.util.Collections;
-import java.util.Comparator;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
@@ -58,9 +56,16 @@ public class EpisodesApplyActionFragment extends Fragment {
private int textColor;
- public EpisodesApplyActionFragment(List<FeedItem> episodes) {
- this.episodes = episodes;
- this.idMap = new HashMap<>(episodes.size());
+ public EpisodesApplyActionFragment() {
+ this.episodes = new ArrayList<>();
+ this.idMap = new HashMap<>();
+
+ }
+
+ public void setEpisodes(List<FeedItem> episodes) {
+ this.episodes.clear();
+ this.episodes.addAll(episodes);
+ this.idMap.clear();
for(FeedItem episode : episodes) {
this.idMap.put(episode.getId(), episode);
}