summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorByteHamster <ByteHamster@users.noreply.github.com>2024-07-20 18:31:31 +0200
committerGitHub <noreply@github.com>2024-07-20 18:31:31 +0200
commit744d03ee5b1702a366d57d41954553cea0f0f2bc (patch)
tree8786358dee30723d20ab963d4a211159955de8f0
parent7d1509f8165a5acc9be3da6d22b41753cb6da2c3 (diff)
downloadAntennaPod-develop.zip
Fix crash when accessing feed of dummy item (#7298)develop
-rw-r--r--app/src/main/java/de/danoeh/antennapod/ui/episodeslist/EpisodeItemViewHolder.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/src/main/java/de/danoeh/antennapod/ui/episodeslist/EpisodeItemViewHolder.java b/app/src/main/java/de/danoeh/antennapod/ui/episodeslist/EpisodeItemViewHolder.java
index c5868a945..8f97bd5d7 100644
--- a/app/src/main/java/de/danoeh/antennapod/ui/episodeslist/EpisodeItemViewHolder.java
+++ b/app/src/main/java/de/danoeh/antennapod/ui/episodeslist/EpisodeItemViewHolder.java
@@ -18,6 +18,7 @@ import androidx.recyclerview.widget.RecyclerView;
import com.google.android.material.elevation.SurfaceColors;
import de.danoeh.antennapod.R;
+import de.danoeh.antennapod.model.feed.Feed;
import de.danoeh.antennapod.ui.CoverLoader;
import de.danoeh.antennapod.actionbutton.ItemActionButton;
import de.danoeh.antennapod.playback.service.PlaybackStatus;
@@ -204,6 +205,7 @@ public class EpisodeItemViewHolder extends RecyclerView.ViewHolder {
public void bindDummy() {
item = new FeedItem();
+ item.setFeed(new Feed("", ""));
container.setAlpha(0.1f);
secondaryActionIcon.setImageDrawable(null);
isInbox.setVisibility(View.VISIBLE);