AlertDialog setOnDismissListener no funciona

Mi actividad abre un diálogo. Cuando se cierra necesito la función.ReloadTable() para ser ejecutado. Así que estoy tratando de usarsetOnDismissListener pero no se está activando. ¿Podría alguien por favor ayudar a lo que estoy haciendo mal?

¡Gracias!

AlertDialog.Builder builder;
AlertDialog alertDialog;
Context mContext = getApplicationContext();
LayoutInflater inflater = (LayoutInflater) mContext.getSystemService(LAYOUT_INFLATER_SERVICE);
View layout = inflater.inflate(R.layout.transaction, null);
builder = new AlertDialog.Builder(new ContextThemeWrapper(TransactionsList.this , R.style.dialogwithoutdim));
builder.setView(layout);
alertDialog = builder.create();
alertDialog.setOnDismissListener(new OnDismissListener() {
    public void onDismiss(final DialogInterface dialog) {
        ReloadTable();
    }
});

builder.show();

Respuestas a la pregunta(5)

Su respuesta a la pregunta