You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 26, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Feb 26, 2023. It is now read-only.
OptionsMenu and OptionsItem with library project #258
When i use @optionsmenu and @OptionsItem on any activity of MyMainProject, AA import the wrong Menu and MenuItems.
My current solution is to delete the generated activities with errors, and then they are generated properly. (I have to do this on every modification). Must be the processing order or something.
On every "save" of my files. (With build automatically enabled)
But I just ignore the "errors" and delete the generated activities only when I "run" the app.
Note that both of projects (Main and Library) are linked with AA.
I've done some tests now, binding ActionBarSherlock with MyMainProject too, and the error continues. The error only happens when i change code of MyLibraryProject.
The only explanation I'd have is that the SherlockActivity might not be in the compile path when the generated class is wrongly compiled... strange, because then it should generate an error.
@pyricau, here is a sample structure https://github.com/naixx/OptionsItemBug. I get this problem on clean. If you modify AbstractOptionsActivity and save it(simple regenerate) - the problem disappears.
Error: "Cannot override the final method from SherlockActivity"
My library project does the Sherlock library bind, and my main project binds the library one.
Ex:
ActionBarSherlock > MyLibraryProject > MyMainProject
When i use @optionsmenu and @OptionsItem on any activity of MyMainProject, AA import the wrong Menu and MenuItems.
My current solution is to delete the generated activities with errors, and then they are generated properly. (I have to do this on every modification). Must be the processing order or something.
Version: 2.7-SNAPSHOT
Thank you.