car/src/main/java/androidx/car/app/CarAlertDialog.java
private void onPositiveButtonClick() {
        if (mPositiveButtonListener != null) {
            mPositiveButtonListener.onClick(/* dialog= */ this, BUTTON_POSITIVE);
        } else {
            dismiss();
        }
    }
/** Delegates to a listener on the positive button if it exists or dismisses the dialog. */
Delegates to a listener on the positive button if it exists or dismisses the dialog.
Delegates to a listener on the positive button if it exists or dismisses the dialog .
private void onPositiveButtonClick() {
        if (mPositiveButtonListener != null) {
            mPositiveButtonListener.onClick(/* dialog= */ this, BUTTON_POSITIVE);
        } else {
            dismiss();
        }
    }
private void onPositiveButtonClick ( ) { if ( mPositiveButtonListener != null ) { mPositiveButtonListener . onClick ( /* dialog= */ this , BUTTON_POSITIVE ) ; } else { dismiss ( ) ; } }
Delegates to a listener on the positive button if it exists or dismisses the dialog.
Delegates to a listener on the positive button if it exists or dismisses the dialog .