title saying what I need
I need to AlertDialog will not close after I click on positive button because I need show a message in that AlertDialog when user click on positive button
a have found this Stop AlertDialog from closing on positive button click but I can't use it in Kotlin
alertDialog.setPositiveButton("ok"){ dialogInterface, i ->
if(myET.text.toString().length !in 10..100){
myET.error = "text size not in the range"
//here must not close
}else{
myfunction()
// only here must close
}
}