Android Question SweetAlertDialog: Prevent back key from closing dialog?

Daica

Active Member
Licensed User
Maybe a long shot since DonManfred released this library in 2016, but was anyone able to find a way to prevent the SweetAlertDialog from closing when the back key is pressed?
Sometimes I do not want the user to be able to close the dialog with the back key.
 

DonManfred

Expert
Licensed User
Longtime User
It is not possible. This is how modal things works in Anroid.

As the lib is from 2016 i know i do not have the source anymore.

Life with it or find another library you can use.
 
Upvote 0

Daica

Active Member
Licensed User
It is not possible. This is how modal things works in Anroid.

As the lib is from 2016 i know i do not have the source anymore.

Life with it or find another library you can use.
Thanks for the reply. I guess I can live with it and only use it to replace msgbox/Toast.
Other libraries are just not as pretty 😁
 
Upvote 0
Top