Is there a callback when an AlertDialog is closed using the touch outside event? I have this enabled \"setCanceledOnTouchOutside(true)\". I want to set a visibility of a spe
If you are within custom dialog class, and wish to catch 'clicked outside dialog' event - override cancel(). If you wish to catch any'dialog closed' event - override dismiss(). I recommend inserting logic BEFORE super.dismiss(). Kotlin example:
override fun dismiss() {
Utils.hideKeyboard(mContext, window)
super.dismiss()
}