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

After called dialog.dismissWithAnimation, the dialog won't show up again #56

Closed
ryanhoo opened this issue Jun 29, 2015 · 2 comments
Closed

Comments

@ryanhoo
Copy link

ryanhoo commented Jun 29, 2015

SweetAlertDialog dialog = new SweetAlertDialog(context, SweetAlertDialog.PROGRESS_TYPE);
...

// show for the first time
dialog.show();
...
dialog.dismissWithAnimation(); // prefer this because of the cool animation
...
// reuse the dialog and show it again
dialog.show(); // this won't work properly, the window dims, but dialog won't show up, and you can't click anything on the window

If I use dialog.dismiss() inherited from Dialog instead of dialog.dismissWithAnimation(), then I am able to reuse that dialog.

@cokeby190
Copy link

I have the same problem with dialog.dismiss()

@ryanhoo
Copy link
Author

ryanhoo commented Dec 25, 2015

@cokeby190 I've already gave up using SweetAlertDialog since months ago. I am using app compat v7's AlertDialog, it's official library and fully support a perfect Material Design look. It's pretty handy and I suggest you to use that as well.

@ryanhoo ryanhoo closed this as completed Dec 25, 2015
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