I was trying to update RecycleView with notifyDataSetChanged() method in response to com.google.common.eventbus.Subscribe.
Like @wmora mentioned the problem was that the notify method was not called in the main UI thread.
I resolved it with AndroidAnnotations' @UiThread
@UiThread
protected void dataSetChanged() {
notifyDataSetChanged();
}
which is equivalent to:
final Adapter adapter = this;
new Handler(Looper.getMainLooper()).post(new Runnable() {
@Override
public void run() {
adapter.notifyDataSetChanged();
}
});
note: just separate new Handler into class private field