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.

Override @OptionsMenu declared from super classes. #1156

@mathieudebrito

Description

@mathieudebrito

Hi there, It would be cool to be able to override OptionsMenu declared from super classes.
It would be really appreciated especially for stacked fragments.

@EActivity
@OptionsMenu(value=R.menu.my_menu, override=true)
public class MyFragment extends Fragment {
  // ...
}

Should produce :

@Override
public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {
  menu.clear();
  inflater.inflate(my.package.R.menu.rides_menu, menu);
  super.onCreateOptionsMenu(menu, inflater);
}

Best

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