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.
This commit is contained in:
ByteHamster 2024-09-07 09:11:35 +02:00 committed by GitHub
parent 462494964d
commit 3fdc39f517
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -7,7 +7,6 @@ import androidx.annotation.NonNull;
import androidx.annotation.StringRes; import androidx.annotation.StringRes;
import android.view.View; import android.view.View;
import de.danoeh.antennapod.model.feed.Feed;
import de.danoeh.antennapod.playback.service.PlaybackStatus; import de.danoeh.antennapod.playback.service.PlaybackStatus;
import de.danoeh.antennapod.model.feed.FeedItem; import de.danoeh.antennapod.model.feed.FeedItem;
import de.danoeh.antennapod.model.feed.FeedMedia; import de.danoeh.antennapod.model.feed.FeedMedia;
@ -49,8 +48,6 @@ public abstract class ItemActionButton {
return new PlayActionButton(item); return new PlayActionButton(item);
} else if (isDownloadingMedia) { } else if (isDownloadingMedia) {
return new CancelDownloadActionButton(item); return new CancelDownloadActionButton(item);
} else if (item.getFeed().getState() != Feed.STATE_SUBSCRIBED) {
return new StreamActionButton(item);
} else if (UserPreferences.isStreamOverDownload()) { } else if (UserPreferences.isStreamOverDownload()) {
return new StreamActionButton(item); return new StreamActionButton(item);
} else { } else {

View File

@ -696,6 +696,9 @@ public class FeedItemlistFragment extends Fragment implements AdapterView.OnItem
.withPlaceholderView(holder.placeholder) .withPlaceholderView(holder.placeholder)
.withCoverView(holder.cover) .withCoverView(holder.cover)
.load(); .load();
if (feed.getState() != Feed.STATE_SUBSCRIBED) {
holder.secondaryActionButton.setVisibility(View.GONE);
}
} }
@Override @Override