summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorByteHamster <ByteHamster@users.noreply.github.com>2024-09-07 09:11:35 +0200
committerGitHub <noreply@github.com>2024-09-07 09:11:35 +0200
commit3fdc39f517e5fa1f39b3db4da8386668f93f2aa8 (patch)
tree2025966406d7c25fd278d464f88c5832b73be2ef
parent462494964d6658f1552bca809f9b973ebe8d3a57 (diff)
downloadAntennaPod-3fdc39f517e5fa1f39b3db4da8386668f93f2aa8.zip
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.
-rw-r--r--app/src/main/java/de/danoeh/antennapod/actionbutton/ItemActionButton.java3
-rw-r--r--app/src/main/java/de/danoeh/antennapod/ui/screen/feed/FeedItemlistFragment.java3
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