Fixed events delivering to background thread and modifying Views
This commit is contained in:
parent
23cdf59803
commit
ab71b16059
|
@ -181,12 +181,12 @@ public class CompletedDownloadsFragment extends Fragment {
|
||||||
loadItems();
|
loadItems();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Subscribe
|
@Subscribe(threadMode = ThreadMode.MAIN)
|
||||||
public void onDownloadLogChanged(DownloadLogEvent event) {
|
public void onDownloadLogChanged(DownloadLogEvent event) {
|
||||||
loadItems();
|
loadItems();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Subscribe
|
@Subscribe(threadMode = ThreadMode.MAIN)
|
||||||
public void onUnreadItemsChanged(UnreadItemsUpdateEvent event) {
|
public void onUnreadItemsChanged(UnreadItemsUpdateEvent event) {
|
||||||
loadItems();
|
loadItems();
|
||||||
}
|
}
|
||||||
|
|
|
@ -190,7 +190,7 @@ public class SearchFragment extends Fragment {
|
||||||
return FeedItemMenuHandler.onMenuItemClicked(this, item.getItemId(), selectedItem);
|
return FeedItemMenuHandler.onMenuItemClicked(this, item.getItemId(), selectedItem);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Subscribe
|
@Subscribe(threadMode = ThreadMode.MAIN)
|
||||||
public void onUnreadItemsChanged(UnreadItemsUpdateEvent event) {
|
public void onUnreadItemsChanged(UnreadItemsUpdateEvent event) {
|
||||||
search();
|
search();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue