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:
parent
462494964d
commit
3fdc39f517
|
@ -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 {
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue