protected final void attemptCloseDialog ( ) { switch ( buttonType ) { case AlertDialog . BUTTON_NEGATIVE : dialog . cancel ( ) ; break ; case AlertDialog . BUTTON_NEUTRAL : dialog . cancel ( ) ; break ; case AlertDialog . BUTTON_POSITIVE : dialog . dismiss ( ) ; break ; default : break ; } }
Attempts to close the dialog depending on the type of the buttonType or list view the listener belongs to .