summaryrefslogtreecommitdiff
path: root/core/src/main
diff options
context:
space:
mode:
authorByteHamster <info@bytehamster.com>2019-09-26 19:06:26 +0200
committerByteHamster <info@bytehamster.com>2019-09-26 19:06:26 +0200
commit8b53268bfe89ef174411ca6adfa19cbd418c8440 (patch)
tree6be349dff0eef1d01e7422f5672b4b141febcc6e /core/src/main
parent889144f993680a9c79b4c840cd0a206a43e654eb (diff)
downloadAntennaPod-8b53268bfe89ef174411ca6adfa19cbd418c8440.zip
Refactored method for readability
Diffstat (limited to 'core/src/main')
-rw-r--r--core/src/main/java/de/danoeh/antennapod/core/event/DownloadEvent.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/src/main/java/de/danoeh/antennapod/core/event/DownloadEvent.java b/core/src/main/java/de/danoeh/antennapod/core/event/DownloadEvent.java
index 124fd3e64..24a71ec96 100644
--- a/core/src/main/java/de/danoeh/antennapod/core/event/DownloadEvent.java
+++ b/core/src/main/java/de/danoeh/antennapod/core/event/DownloadEvent.java
@@ -25,4 +25,8 @@ public class DownloadEvent {
"update=" + update +
'}';
}
+
+ public boolean hasChangedFeedUpdateStatus(boolean oldStatus) {
+ return oldStatus != update.feedIds.length > 0;
+ }
}