private void setupSearchTitle(final SimpleDialogTitleViewBinding titleView, final Consumer<Editable> searchListener) {
        //Activate search
        titleView.dialogSearchIcon.setVisibility(View.VISIBLE);
        titleView.dialogSearch.addTextChangedListener(ViewUtils.createSimpleWatcher(searchListener));
        //set up search logic
        titleView.dialogSearchIcon.setOnClickListener(l -> executeSearchTitleClick(titleView));
        titleView.dialogTitle.setOnClickListener(l -> executeSearchTitleClick(titleView));
    }
Sets an action to execute when neutral button is clicked
main/src/main/java/cgeo/geocaching/ui/dialog/SimpleDialog.java