D Daica Active Member Licensed User Longtime User Apr 21, 2022 #1 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.
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 Apr 21, 2022 #2 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
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.
D Daica Active Member Licensed User Longtime User Apr 21, 2022 #3 DonManfred said: 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. Click to expand... 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
DonManfred said: 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. Click to expand... 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 ?
G ganezha Member Apr 6, 2024 #4 Daica said: 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 ? Click to expand... If KeyCode = KeyCodes.KEYCODE_BACK Then sweet.Initialize("Alert") sweet.showCancelButton(True).showContentText(True).withCancelText("No").withConfirmText("Si").withContentText("Desea abandonar la aplicación").withTitleText("Salir").show Return True End If Upvote 0
Daica said: 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 ? Click to expand... If KeyCode = KeyCodes.KEYCODE_BACK Then sweet.Initialize("Alert") sweet.showCancelButton(True).showContentText(True).withCancelText("No").withConfirmText("Si").withContentText("Desea abandonar la aplicación").withTitleText("Salir").show Return True End If