fix: hide save button in fragmented activity to prevent duplication#18951
fix: hide save button in fragmented activity to prevent duplication#18951lukstbit merged 1 commit intoankidroid:mainfrom
Conversation
david-allison
left a comment
There was a problem hiding this comment.
I don't feel the issue, PR or commit message explain why this is occurring.
What's producing the other save button? Why are we removing it from the Note Editor?
I've added some context in the PR, I'll also do so in the commit message |
|
I'd remove adding the menu item 'action_save' from the Browser. It should be a responsibility of the note editor. The Browser should instead override the |
Arthur-Milchior
left a comment
There was a problem hiding this comment.
In the commit message "save note" and "preview" should be quoted. Or even you should state that it remove the menu entry named "save note" and "preview". As those are verbs that are used as noun, it makes the sentence very confusing otherwise.
I really don't understand what the last line mean. I have now idea which check you're referring to. How could a check disappear.
I appreciate that your commit message are longer than a single line, but it's still hard to follow.
|
Should have a more clear message rn! Thanks for the heads up, it was a lot more obvious to me because I worked on it! |
david-allison
left a comment
There was a problem hiding this comment.
Ok, consider making the title ~50 chars:
fix(card-browser): remove duplicate menu items
- Since NoteEditorFragment is now a MenuProvider, it automatically contributes its menu items when attached. The manual call to fragment?.onCreateMenu(...) is now redundant and has been removed to prevent duplicate “Save Note” and “Preview” entries in X-Large layout - Added a check to remove the “Save Note” and “Preview” actions when there are no notes in the CardBrowser
Purpose / Description
NoteEditorFragmentin cardBrowser to prevent duplicationFixes
Approach
How Has This Been Tested?
Checklist