Fix crash when accessing feed of dummy item (#7298)
This commit is contained in:
parent
7d1509f816
commit
744d03ee5b
|
@ -18,6 +18,7 @@ import androidx.recyclerview.widget.RecyclerView;
|
||||||
import com.google.android.material.elevation.SurfaceColors;
|
import com.google.android.material.elevation.SurfaceColors;
|
||||||
|
|
||||||
import de.danoeh.antennapod.R;
|
import de.danoeh.antennapod.R;
|
||||||
|
import de.danoeh.antennapod.model.feed.Feed;
|
||||||
import de.danoeh.antennapod.ui.CoverLoader;
|
import de.danoeh.antennapod.ui.CoverLoader;
|
||||||
import de.danoeh.antennapod.actionbutton.ItemActionButton;
|
import de.danoeh.antennapod.actionbutton.ItemActionButton;
|
||||||
import de.danoeh.antennapod.playback.service.PlaybackStatus;
|
import de.danoeh.antennapod.playback.service.PlaybackStatus;
|
||||||
|
@ -204,6 +205,7 @@ public class EpisodeItemViewHolder extends RecyclerView.ViewHolder {
|
||||||
|
|
||||||
public void bindDummy() {
|
public void bindDummy() {
|
||||||
item = new FeedItem();
|
item = new FeedItem();
|
||||||
|
item.setFeed(new Feed("", ""));
|
||||||
container.setAlpha(0.1f);
|
container.setAlpha(0.1f);
|
||||||
secondaryActionIcon.setImageDrawable(null);
|
secondaryActionIcon.setImageDrawable(null);
|
||||||
isInbox.setVisibility(View.VISIBLE);
|
isInbox.setVisibility(View.VISIBLE);
|
||||||
|
|
Loading…
Reference in New Issue