private void adaptPositiveButtonEnableState ( final boolean enabled ) { Button button = getDialog ( ) . getButton ( DialogInterface . BUTTON_POSITIVE ) ; if ( button != null ) { button . setEnabled ( enabled ) ; } }
Adapts the enable state of the dialog s positive button .