summaryrefslogtreecommitdiff
path: root/app/src/main/java/de/danoeh/antennapod/menuhandler
diff options
context:
space:
mode:
authorByteHamster <info@bytehamster.com>2021-04-22 22:19:02 +0200
committerByteHamster <info@bytehamster.com>2021-04-22 22:19:02 +0200
commit09d402a945b42e86001f12325e00395487ac76b4 (patch)
tree58a4ddd942c85e6c6de534ead02e7907164d1ac9 /app/src/main/java/de/danoeh/antennapod/menuhandler
parentc04f36bb9fd8ba659b7e95f16f3a5cad2521bdb9 (diff)
downloadAntennaPod-09d402a945b42e86001f12325e00395487ac76b4.zip
Removed PlaybackPreferences dependency from FeedMedia
Diffstat (limited to 'app/src/main/java/de/danoeh/antennapod/menuhandler')
-rw-r--r--app/src/main/java/de/danoeh/antennapod/menuhandler/FeedItemMenuHandler.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/main/java/de/danoeh/antennapod/menuhandler/FeedItemMenuHandler.java b/app/src/main/java/de/danoeh/antennapod/menuhandler/FeedItemMenuHandler.java
index 139e8b5c3..17b96349b 100644
--- a/app/src/main/java/de/danoeh/antennapod/menuhandler/FeedItemMenuHandler.java
+++ b/app/src/main/java/de/danoeh/antennapod/menuhandler/FeedItemMenuHandler.java
@@ -49,7 +49,7 @@ public class FeedItemMenuHandler {
return false;
}
final boolean hasMedia = selectedItem.getMedia() != null;
- final boolean isPlaying = hasMedia && selectedItem.getState() == FeedItem.State.PLAYING;
+ final boolean isPlaying = hasMedia && FeedItemUtil.isPlaying(selectedItem.getMedia());
final boolean isInQueue = selectedItem.isTagged(FeedItem.TAG_QUEUE);
final boolean fileDownloaded = hasMedia && selectedItem.getMedia().fileExists();
final boolean isFavorite = selectedItem.isTagged(FeedItem.TAG_FAVORITE);