diff options
author | H. Lehmann <ByteHamster@users.noreply.github.com> | 2020-06-19 09:59:07 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-19 09:59:07 +0200 |
commit | 65ec9e5f458e1d3c9003f79c21abb217a81d1910 (patch) | |
tree | ed122aa1d81d4efc9971cbb5319a853394bf5e15 /app | |
parent | f5191ca400f0f542601436879b52a7218ae21d0e (diff) | |
parent | ab71b16059758b1caef31fb666bb55881ab60e35 (diff) | |
download | AntennaPod-65ec9e5f458e1d3c9003f79c21abb217a81d1910.zip |
Merge pull request #4250 from ByteHamster/fixed-event-thread
Fixed events delivering to background thread and modifying Views
Diffstat (limited to 'app')
-rw-r--r-- | app/src/main/java/de/danoeh/antennapod/fragment/CompletedDownloadsFragment.java | 4 | ||||
-rw-r--r-- | app/src/main/java/de/danoeh/antennapod/fragment/SearchFragment.java | 2 |
2 files changed, 3 insertions, 3 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 6629d74e2..13941dd2c 100644 --- a/app/src/main/java/de/danoeh/antennapod/fragment/CompletedDownloadsFragment.java +++ b/app/src/main/java/de/danoeh/antennapod/fragment/CompletedDownloadsFragment.java @@ -181,12 +181,12 @@ public class CompletedDownloadsFragment extends Fragment { loadItems(); } - @Subscribe + @Subscribe(threadMode = ThreadMode.MAIN) public void onDownloadLogChanged(DownloadLogEvent event) { loadItems(); } - @Subscribe + @Subscribe(threadMode = ThreadMode.MAIN) public void onUnreadItemsChanged(UnreadItemsUpdateEvent event) { loadItems(); } 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 1ebf382fe..0d33c1282 100644 --- a/app/src/main/java/de/danoeh/antennapod/fragment/SearchFragment.java +++ b/app/src/main/java/de/danoeh/antennapod/fragment/SearchFragment.java @@ -190,7 +190,7 @@ public class SearchFragment extends Fragment { return FeedItemMenuHandler.onMenuItemClicked(this, item.getItemId(), selectedItem); } - @Subscribe + @Subscribe(threadMode = ThreadMode.MAIN) public void onUnreadItemsChanged(UnreadItemsUpdateEvent event) { search(); } |