diff options
author | ByteHamster <info@bytehamster.com> | 2019-10-25 11:29:35 +0200 |
---|---|---|
committer | ByteHamster <info@bytehamster.com> | 2019-10-25 11:29:35 +0200 |
commit | 2326f712621064d881c1ba9d13cdccda6e5043ea (patch) | |
tree | 95e11487a0587813da7a16089f7a18f0f38b2334 /app/src/main | |
parent | 1de76f789f16765525d21b9e2b3fedccf1750c21 (diff) | |
download | AntennaPod-2326f712621064d881c1ba9d13cdccda6e5043ea.zip |
Fixed downloads fragment not updating
Diffstat (limited to 'app/src/main')
-rw-r--r-- | app/src/main/java/de/danoeh/antennapod/fragment/CompletedDownloadsFragment.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/src/main/java/de/danoeh/antennapod/fragment/CompletedDownloadsFragment.java b/app/src/main/java/de/danoeh/antennapod/fragment/CompletedDownloadsFragment.java index 58d64da19..fc1eec071 100644 --- a/app/src/main/java/de/danoeh/antennapod/fragment/CompletedDownloadsFragment.java +++ b/app/src/main/java/de/danoeh/antennapod/fragment/CompletedDownloadsFragment.java @@ -17,6 +17,7 @@ import de.danoeh.antennapod.R; import de.danoeh.antennapod.activity.MainActivity; import de.danoeh.antennapod.adapter.DownloadedEpisodesListAdapter; import de.danoeh.antennapod.core.event.DownloadLogEvent; +import de.danoeh.antennapod.core.event.UnreadItemsUpdateEvent; import de.danoeh.antennapod.core.feed.FeedItem; import de.danoeh.antennapod.core.storage.DBReader; import de.danoeh.antennapod.core.storage.DBWriter; @@ -143,6 +144,11 @@ public class CompletedDownloadsFragment extends ListFragment { loadItems(); } + @Subscribe + public void onUnreadItemsChanged(UnreadItemsUpdateEvent event) { + loadItems(); + } + private void loadItems() { if (disposable != null) { disposable.dispose(); |