close dialog android
snippet in kotlin

close dialog android

user8899

if (dialog.isShowing) {
     dialog.dismiss()
}