Skip to content
This repository was archived by the owner on Feb 26, 2023. It is now read-only.
This repository was archived by the owner on Feb 26, 2023. It is now read-only.

The generated code is wrong when extending activities annotated with @OptionsMenu  #473

@mathieuboniface

Description

@mathieuboniface

Reported by Charlie Babitt on the mailing list :
https://groups.google.com/forum/?fromgroups=#!topic/androidannotations/3wUAMibQa-8

I have the following problem. I have two AA annotated activities. Activity A has an @optionsmenu extension. I want activity B to extend from A but have another @optionsmenu. Doing this I end up with a compilation error in my generated code, since it generates two public boolean onCreateOptionsMenu(Menu menu) which leads to a duplicate method error...

Is there any idea how i can fix it other than removing the annotation from activity A and put it to all its child classes except B?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions