Skip to content
This repository was archived by the owner on Apr 30, 2019. It is now read-only.
This repository was archived by the owner on Apr 30, 2019. It is now read-only.

Registering an parent class does not work #26

@mr-thierry

Description

@mr-thierry

I have a parent activity that contains a @Subscribe method. When I try to register the parent using bus.register(this), the AnnotatedHandlerFinder finds all @Subscribe methods in the child class, not in the parent.

That's because:
AnnotatedHandlerFinder.findAllSubscribers() take the class of the instance and not the parent.

A solution would be to add a new method bus.register(this, listenerClass), where listenerClassis the type of the parent object?

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