Skip to content
This repository has been archived by the owner on Jul 13, 2020. It is now read-only.

Return toast object in toast helper functions. #512

Merged
merged 2 commits into from
Nov 21, 2017

Conversation

kizitonwose
Copy link
Contributor

The toast helper functions now return the Toast object so users can cancel if needed. Return types are explicitly specified because the platform toast functions are missing nullability annotations. This also fixes #504.

@4u7 4u7 self-assigned this Nov 21, 2017
@4u7
Copy link
Contributor

4u7 commented Nov 21, 2017

Thanks for the contribution! If you run ./gradlew dist you will see that SupportDialogs.kt doesn't compile, please fix those errors. Otherwise looks good to me!

@kizitonwose
Copy link
Contributor Author

@4u7 The errors are now fixed.

@4u7 4u7 merged commit b58b72d into Kotlin:master Nov 21, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Question] How to cancel previous toast using toast method from anko common?
2 participants