Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prevent dismiss #10

Closed
IanLaFlair opened this issue Dec 1, 2022 · 1 comment
Closed

prevent dismiss #10

IanLaFlair opened this issue Dec 1, 2022 · 1 comment

Comments

@IanLaFlair
Copy link

How to prevent dismiss when at onPositive ? because i need to not close the dialog everytime click the onpositive

@iamageo
Copy link
Owner

iamageo commented Dec 1, 2022

Hello @IanLaFlair, thanks for you issue. 🔥

I added shouldIDismissOnClick in methods onPositive and onNegative with default value is true, just call it in your BeautifulDialog as in the code below:

.onPositive(text = "Confirm", shouldIDismissOnClick = false) { //your action here 
}
.onNegative(text = "Cancel", shouldIDismissOnClick = true) {  //your action here 
}

For this to work update to version 1.0.3

@iamageo iamageo closed this as completed Dec 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants