-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
fix: hide save button in fragmented activity to prevent duplication #18951
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
…rowser when NoteEditor is shown in X-Large layout - 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
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! |
Purpose / Description
NoteEditorFragment
in cardBrowser to prevent duplicationFixes
Approach
How Has This Been Tested?
Checklist