diff options
author | ByteHamster <info@bytehamster.com> | 2021-04-22 21:17:52 +0200 |
---|---|---|
committer | ByteHamster <info@bytehamster.com> | 2021-04-22 21:17:52 +0200 |
commit | 0d49f39ea0868f57bfdcfd9536cd34d11a8ea355 (patch) | |
tree | 57db2e074ab18dae806010aa88111677f0b5be4b /app/src/main/java/de/danoeh/antennapod/menuhandler | |
parent | daf6226483dccd168f25fee2d37ed2078e881504 (diff) | |
download | AntennaPod-0d49f39ea0868f57bfdcfd9536cd34d11a8ea355.zip |
Reduce dependencies of model to UserPreferences
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 1eecccb4c..139e8b5c3 100644 --- a/app/src/main/java/de/danoeh/antennapod/menuhandler/FeedItemMenuHandler.java +++ b/app/src/main/java/de/danoeh/antennapod/menuhandler/FeedItemMenuHandler.java @@ -249,7 +249,7 @@ public class FeedItemMenuHandler { final Handler h = new Handler(fragment.requireContext().getMainLooper()); final Runnable r = () -> { FeedMedia media = item.getMedia(); - if (media != null && media.hasAlmostEnded() && UserPreferences.isAutoDelete()) { + if (media != null && FeedItemUtil.hasAlmostEnded(media) && UserPreferences.isAutoDelete()) { DBWriter.deleteFeedMediaOfItem(fragment.requireContext(), media.getId()); } }; |