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.

Inherrited methods are not counted by Otto #150

@kennydude

Description

@kennydude

Otto does not check inherited classes for methods which could be annotated with a @Subscribe annotation.

Example:

public class BaseClass{ @Subscribe public void receiveEvent(MyEvent e){ /* ... */ } }
public class MainClass extends BaseClass{  /* receiveEvent is not seen by register, even if register is called in BaseClass */  }

Use case for this is for a project I am working on, I want SnackBar notifications to appear on any activity when a certain event is received.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions