@Override
    public void onCreateOptionsMenu(final @NonNull Menu menu, final @NonNull MenuInflater inflater) {
        requireActivity().getMenuInflater().inflate(R.menu.menu_ok_cancel, menu);
        menu.findItem(R.id.menu_item_save_and_upload).setVisible(getArguments().getBoolean(ARGUMENT_INITIAL_UPLOAD_AVAILABLE));
    }
Create a new dialog to edit a note.
<em>This fragment must be inserted into an activity implementing the EditNoteDialogListener interface.</em>

@param initialNote the initial note to insert in the edit dialog
main/src/main/java/cgeo/geocaching/ui/dialog/EditNoteDialog.java