From 2827f414303c998d926ebcb3293b799467639c5b Mon Sep 17 00:00:00 2001 From: flofriday Date: Mon, 6 May 2024 22:14:26 +0200 Subject: [PATCH] Improve layout for missing chapter images (#7164) If only some chapters have images the other chapters don't display anything but reserve space for the image. Now those chapters display the image of the episode. If no chapters have images no images will be displayed (just like before). --- .../screen/chapter/ChaptersListAdapter.java | 23 +++++++++++++++---- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/de/danoeh/antennapod/ui/screen/chapter/ChaptersListAdapter.java b/app/src/main/java/de/danoeh/antennapod/ui/screen/chapter/ChaptersListAdapter.java index bf84b7bd7..16672414a 100644 --- a/app/src/main/java/de/danoeh/antennapod/ui/screen/chapter/ChaptersListAdapter.java +++ b/app/src/main/java/de/danoeh/antennapod/ui/screen/chapter/ChaptersListAdapter.java @@ -19,6 +19,7 @@ import de.danoeh.antennapod.R; import de.danoeh.antennapod.model.feed.Chapter; import de.danoeh.antennapod.ui.common.Converter; import de.danoeh.antennapod.model.feed.EmbeddedChapterImage; +import de.danoeh.antennapod.ui.common.ImagePlaceholder; import de.danoeh.antennapod.ui.common.IntentUtils; import de.danoeh.antennapod.model.playback.Playable; import de.danoeh.antennapod.ui.common.CircularProgressBar; @@ -99,15 +100,27 @@ public class ChaptersListAdapter extends RecyclerView.Adapter