Fixed downloads fragment not updating

This commit is contained in:
ByteHamster 2019-10-25 11:29:35 +02:00
parent 1de76f789f
commit 2326f71262
1 changed files with 6 additions and 0 deletions

View File

@ -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();