GCX-HCI / ThirtyInch

a MVP library for Android favoring a stateful Presenter
Apache License 2.0
1.03k stars 101 forks source link

Problems with @CallOnMainThread #159

Open Namnodorel opened 5 years ago

Namnodorel commented 5 years ago

I have a fairly simple interface:

public interface GraphView extends TiView {
    @CallOnMainThread
    void addGraph(Recipe recipe, Object data);
}

And am using it together with a presenter that extends TiPresenter.

Within that presenter, I have a method annotated with @Background from AndroidAnnotations. And from that method I call addGraph().

However, addGraph() is not executed in the main thread, it just sticks to an existing one and eventually complains when I eventually try to modify the View from there.

I'm not sure where to look for the problem here. Could this be some kind of clashing with AndroidAnnotations?