private AnimatorListener createDismissAnimationListener ( ) { return new AnimatorListenerAdapter ( ) { @ Override public void onAnimationEnd ( Animator animation ) { super . onAnimationEnd ( animation ) ; AbstractAnimateableDialog . super . dismiss ( ) ; } } ; }
Creates and returns an animation listener which allows to dismiss the dialog once the animation which is used to hide it has finished .