Merge pull request #4250 from ByteHamster/fixed-event-thread
Fixed events delivering to background thread and modifying Views
This commit is contained in:
commit
65ec9e5f45
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue