Fixed events delivering to background thread and modifying Views

This commit is contained in:
ByteHamster 2020-06-19 09:43:36 +02:00
parent 23cdf59803
commit ab71b16059
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();
}