addOnCancelListener

The supplied listener is called when the user cancels the picker via back button or a touch outside the view.

It is not called when the user clicks the cancel button. To add a listener for use when the user clicks the cancel button, use addOnNegativeButtonClickListener.