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

Remove show toast method call from cancel timer to ensure that toast show is called only once. #118

Merged
merged 1 commit into from
Aug 22, 2018

Conversation

patrickfrisch
Copy link
Contributor

@patrickfrisch patrickfrisch commented Aug 21, 2018

I think there is a problem when calling the show method from the toast instance multiple times.

@patrickfrisch patrickfrisch mentioned this pull request Aug 21, 2018
2 tasks
@EddyVerbruggen
Copy link
Owner

Hmm, this used to be fine and it provided the possibility to show a Toast for an arbitrary duration.

Here's a blog from someone also using this technique (but I guess that also no longer works with Android P, although I didn't test this myself): https://blog.cindypotvin.com/toast-specific-duration-android/

I think I'll merge this and add an 'Android P' check for now.

@EddyVerbruggen EddyVerbruggen added this to the 2.7.0 milestone Aug 22, 2018
@EddyVerbruggen EddyVerbruggen merged commit e4e18f1 into EddyVerbruggen:master Aug 22, 2018
EddyVerbruggen added a commit that referenced this pull request Aug 22, 2018
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

Successfully merging this pull request may close these issues.

2 participants