private void showInternal(final Runnable positive, final Runnable negative) {
        final AlertDialog dialog = constructCommons().first;
        dialog.show();
        finalizeCommons(dialog, which -> {
            switch (which) {
                case DialogInterface.BUTTON_POSITIVE:
                    if (positive != null) {
                        positive.run();
                        dialog.dismiss();
                        return true;
                    }
                    break;
                case DialogInterface.BUTTON_NEGATIVE:
                    if (negative != null) {
                        negative.run();
                        dialog.dismiss();
                        return true;
                    }
                    break;
                default:
                    //do nothing
                    break;

            }
            return false;
        });
    }
Use this method to create and display a 'confirmation' dialog using the data defined before using this classes' setters
<p>
A confirm dialog always has at least a positive action and shows at least a positive and a negative button.
Provide up to two listeners to define actions for 'positive' and 'negative'.
main/src/main/java/cgeo/geocaching/ui/dialog/SimpleDialog.java