Skip to content
This repository has been archived by the owner on Mar 16, 2021. It is now read-only.

Problems with @CallOnMainThread #159

Open
Namnodorel opened this issue Sep 2, 2018 · 0 comments
Open

Problems with @CallOnMainThread #159

Namnodorel opened this issue Sep 2, 2018 · 0 comments

Comments

@Namnodorel
Copy link

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?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant