diff options
author | ByteHamster <info@bytehamster.com> | 2022-11-30 19:11:08 +0100 |
---|---|---|
committer | ByteHamster <info@bytehamster.com> | 2022-11-30 19:44:35 +0100 |
commit | 2d115a0ec582d26a0598e19a8dcc86f57833ab4b (patch) | |
tree | 62270eb3f51c41ff071b9822841702f53b4139a0 | |
parent | b4026a9a825e1978049eee4f28b1a76dc1a0ffef (diff) | |
download | AntennaPod-2d115a0ec582d26a0598e19a8dcc86f57833ab4b.zip |
Refresh home screen when new episodes arrive in inbox
-rw-r--r-- | app/src/main/java/de/danoeh/antennapod/ui/home/sections/InboxSection.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/src/main/java/de/danoeh/antennapod/ui/home/sections/InboxSection.java b/app/src/main/java/de/danoeh/antennapod/ui/home/sections/InboxSection.java index 92bb0c381..3e7b02fd3 100644 --- a/app/src/main/java/de/danoeh/antennapod/ui/home/sections/InboxSection.java +++ b/app/src/main/java/de/danoeh/antennapod/ui/home/sections/InboxSection.java @@ -20,6 +20,7 @@ import de.danoeh.antennapod.core.menuhandler.MenuItemUtils; import de.danoeh.antennapod.core.storage.DBReader; import de.danoeh.antennapod.core.util.FeedItemUtil; import de.danoeh.antennapod.event.FeedItemEvent; +import de.danoeh.antennapod.event.FeedListUpdateEvent; import de.danoeh.antennapod.event.UnreadItemsUpdateEvent; import de.danoeh.antennapod.fragment.InboxFragment; import de.danoeh.antennapod.fragment.swipeactions.SwipeActions; @@ -89,6 +90,11 @@ public class InboxSection extends HomeSection { loadItems(); } + @Subscribe(threadMode = ThreadMode.MAIN) + public void onFeedListChanged(FeedListUpdateEvent event) { + loadItems(); + } + @Subscribe(sticky = true, threadMode = ThreadMode.MAIN) public void onEventMainThread(DownloadEvent event) { Log.d(TAG, "onEventMainThread() called with DownloadEvent"); |