Make dialogs non-cancelable on Android.

This commit is contained in:
Anish Mishra 2025-01-17 19:45:34 +05:30 committed by GitHub
parent 36a62d0c6a
commit 401310d74d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -151,6 +151,7 @@ internal class DialogUtils {
builder.setView(parentLayout)
val dialog = builder.create()
dismissDialog = {dialog.dismiss()}
dialog.setCancelable(false)
dialog.show()
}
}
@ -178,6 +179,7 @@ internal class DialogUtils {
dialog.dismiss()
}
val dialog = builder.create()
dialog.setCancelable(false)
dialog.show()
}
}