Merge pull request #4250 from ByteHamster/fixed-event-thread

Fixed events delivering to background thread and modifying Views
This commit is contained in:
H. Lehmann 2020-06-19 09:59:07 +02:00 committed by GitHub
commit 65ec9e5f45
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

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

View File

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