diff options
author | ByteHamster <info@bytehamster.com> | 2019-10-23 22:49:04 +0200 |
---|---|---|
committer | ByteHamster <info@bytehamster.com> | 2019-10-23 22:51:28 +0200 |
commit | 7d3b78091fcead9a4a89861f39d42df601e080a4 (patch) | |
tree | cb614d5ff9a3f823c819dfe528ba80a95a156d5a /app | |
parent | d8ffa6c4591102c96adf1096b211caf0db7aa168 (diff) | |
download | AntennaPod-7d3b78091fcead9a4a89861f39d42df601e080a4.zip |
Removed event that is never sent
Diffstat (limited to 'app')
3 files changed, 4 insertions, 8 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 b85578060..7196198cc 100644 --- a/app/src/main/java/de/danoeh/antennapod/fragment/CompletedDownloadsFragment.java +++ b/app/src/main/java/de/danoeh/antennapod/fragment/CompletedDownloadsFragment.java @@ -41,8 +41,6 @@ public class CompletedDownloadsFragment extends ListFragment { private static final String TAG = CompletedDownloadsFragment.class.getSimpleName(); - private static final int EVENTS = EventDistributor.DOWNLOAD_HANDLED | EventDistributor.UNREAD_ITEMS_UPDATE; - private List<FeedItem> items = new ArrayList<>(); private DownloadedEpisodesListAdapter listAdapter; private Disposable disposable; @@ -146,7 +144,7 @@ public class CompletedDownloadsFragment extends ListFragment { private final EventDistributor.EventListener contentUpdate = new EventDistributor.EventListener() { @Override public void update(EventDistributor eventDistributor, Integer arg) { - if ((arg & EVENTS) != 0) { + if ((arg & EventDistributor.UNREAD_ITEMS_UPDATE) != 0) { loadItems(); } } diff --git a/app/src/main/java/de/danoeh/antennapod/fragment/QueueFragment.java b/app/src/main/java/de/danoeh/antennapod/fragment/QueueFragment.java index b8ae7bb5b..37277a7c4 100644 --- a/app/src/main/java/de/danoeh/antennapod/fragment/QueueFragment.java +++ b/app/src/main/java/de/danoeh/antennapod/fragment/QueueFragment.java @@ -76,9 +76,8 @@ public class QueueFragment extends Fragment { public static final String TAG = "QueueFragment"; - private static final int EVENTS = EventDistributor.DOWNLOAD_HANDLED | - EventDistributor.UNREAD_ITEMS_UPDATE | // sent when playback position is reset - EventDistributor.PLAYER_STATUS_UPDATE; + private static final int EVENTS = EventDistributor.UNREAD_ITEMS_UPDATE // sent when playback position is reset + | EventDistributor.PLAYER_STATUS_UPDATE; private TextView infoBar; private RecyclerView recyclerView; diff --git a/app/src/main/java/de/danoeh/antennapod/fragment/SearchFragment.java b/app/src/main/java/de/danoeh/antennapod/fragment/SearchFragment.java index 7f3c60e5d..b05b7025c 100644 --- a/app/src/main/java/de/danoeh/antennapod/fragment/SearchFragment.java +++ b/app/src/main/java/de/danoeh/antennapod/fragment/SearchFragment.java @@ -148,8 +148,7 @@ public class SearchFragment extends ListFragment { private final EventDistributor.EventListener contentUpdate = new EventDistributor.EventListener() { @Override public void update(EventDistributor eventDistributor, Integer arg) { - if ((arg & (EventDistributor.UNREAD_ITEMS_UPDATE - | EventDistributor.DOWNLOAD_HANDLED)) != 0) { + if ((arg & EventDistributor.UNREAD_ITEMS_UPDATE) != 0) { search(); } } |