Fix crash when accessing feed of dummy item (#7298)

This commit is contained in:
ByteHamster 2024-07-20 18:31:31 +02:00 committed by GitHub
parent 7d1509f816
commit 744d03ee5b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -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);