https://kotlinlang.org logo
Title
n

nglauber

08/03/2021, 3:21 PM
Do I have to do something special to close an
AlertDialog
pressing back key or clicking outside? I saw the
properties
parameter receives an
DialogProperties
object which has these properties (
dismissOnBackPress
and
dismissOnClickOutside
) set to true by default. But looks like it’s not working 😕
m

MBegemot

08/03/2021, 3:59 PM
Dialog(onDismissRequest = { selectLang.value = false }) {
Well, it works for me , onDissmisRequest I set to false the var that leads the dialog to show off ...
👏 1
n

nglauber

08/03/2021, 4:02 PM

https://media.giphy.com/media/QJsP0cTAJhg7O47ub2/giphy.gif

Thanks @MBegemot 😉