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

Problems with @CallOnMainThread #159

@Namnodorel

Description

@Namnodorel

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions