public SimpleDialog setButtons(final TextParam... buttons) {
        setPositiveButton(buttons == null || buttons.length < 1 ? null : buttons[0]);
        setNegativeButton(buttons == null || buttons.length < 2 ? null : buttons[1]);
        setNeutralButton(buttons == null || buttons.length < 3 ? null : buttons[2]);
        return this;
    }
Up to three parameters will be processed. First is positive button, second is negative button, third is neutral button
main/src/main/java/cgeo/geocaching/ui/dialog/SimpleDialog.java