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
SuperActivityToast now showing (and not clickable) occasionally ? #45
Comments
SuperActivityToast.cancelAllSuperActivityToasts(); |
Skadavan, Sorry for the late reply, I'm absolutely swamped with work! I have used SuperActivityToasts in Fragments with no issues, the demo app even uses Fragments. Have you tried to create it in the onEvent method? I can't imagine why it would be null but try to put a log in there to make sure show() is being called. Suggestion number two would be to call cancelAllSuperActivityToasts() before you call show() but that's kind of hacky, I'd rather know what the real problem is. SuperCardToasts are added to your Activity differently than SuperToasts or SuperActivityToasts. SuperCardToasts do not have a Queue. If nothing else works, replace the SuperActivityToast with a SuperCardToast and let me know what happens. If SuperCardToasts work than that would help me narrow down the issue. Let me know what happens either way and thanks for the report! -John |
Hey @skadavan I run into similar issue and for me the problem was because I was reusing the same Maybe this requires to be mentioned in the documentation, something like The toasts are designed to be on-shot ? HTH |
tbruyelle, You are correct. While the SuperActivityToasts were not specifically designed as a one shot, it is best practice to reuse the same one. I will make this more clear in the documentation. Thanks, John |
I am using SuperActivityToast to show a confirmation with an optional info button (which launches another activity).
Occasionally the toast doesn't come up. Occasionally it comes up but the button is not clickable. Noticed this happens when we try using it frequently. I am using it from a fragment. Any clues ?
Code below:
The text was updated successfully, but these errors were encountered: