diff options
author | ByteHamster <info@bytehamster.com> | 2021-04-22 22:19:02 +0200 |
---|---|---|
committer | ByteHamster <info@bytehamster.com> | 2021-04-22 22:19:02 +0200 |
commit | 09d402a945b42e86001f12325e00395487ac76b4 (patch) | |
tree | 58a4ddd942c85e6c6de534ead02e7907164d1ac9 /app/src/main/java/de/danoeh/antennapod/menuhandler | |
parent | c04f36bb9fd8ba659b7e95f16f3a5cad2521bdb9 (diff) | |
download | AntennaPod-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.java | 2 |
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); |