From 3fdc39f517e5fa1f39b3db4da8386668f93f2aa8 Mon Sep 17 00:00:00 2001 From: ByteHamster Date: Sat, 7 Sep 2024 09:11:35 +0200 Subject: [PATCH] Hide play button on episode preview list (#7386) This makes it more clear that the podcast is not subscribed yet. It is still possible to stream or download by clicking the episodes. --- .../de/danoeh/antennapod/actionbutton/ItemActionButton.java | 3 --- .../danoeh/antennapod/ui/screen/feed/FeedItemlistFragment.java | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/de/danoeh/antennapod/actionbutton/ItemActionButton.java b/app/src/main/java/de/danoeh/antennapod/actionbutton/ItemActionButton.java index 54714be3d..84b246167 100644 --- a/app/src/main/java/de/danoeh/antennapod/actionbutton/ItemActionButton.java +++ b/app/src/main/java/de/danoeh/antennapod/actionbutton/ItemActionButton.java @@ -7,7 +7,6 @@ import androidx.annotation.NonNull; import androidx.annotation.StringRes; import android.view.View; -import de.danoeh.antennapod.model.feed.Feed; import de.danoeh.antennapod.playback.service.PlaybackStatus; import de.danoeh.antennapod.model.feed.FeedItem; import de.danoeh.antennapod.model.feed.FeedMedia; @@ -49,8 +48,6 @@ public abstract class ItemActionButton { return new PlayActionButton(item); } else if (isDownloadingMedia) { return new CancelDownloadActionButton(item); - } else if (item.getFeed().getState() != Feed.STATE_SUBSCRIBED) { - return new StreamActionButton(item); } else if (UserPreferences.isStreamOverDownload()) { return new StreamActionButton(item); } else { diff --git a/app/src/main/java/de/danoeh/antennapod/ui/screen/feed/FeedItemlistFragment.java b/app/src/main/java/de/danoeh/antennapod/ui/screen/feed/FeedItemlistFragment.java index f9c41496f..e4e64ffc5 100644 --- a/app/src/main/java/de/danoeh/antennapod/ui/screen/feed/FeedItemlistFragment.java +++ b/app/src/main/java/de/danoeh/antennapod/ui/screen/feed/FeedItemlistFragment.java @@ -696,6 +696,9 @@ public class FeedItemlistFragment extends Fragment implements AdapterView.OnItem .withPlaceholderView(holder.placeholder) .withCoverView(holder.cover) .load(); + if (feed.getState() != Feed.STATE_SUBSCRIBED) { + holder.secondaryActionButton.setVisibility(View.GONE); + } } @Override