Skip to content

Instantly share code, notes, and snippets.

@tasaquino
Created December 4, 2018 16:56
Show Gist options
  • Save tasaquino/a337f3627e1de96e678d7f947b88e058 to your computer and use it in GitHub Desktop.
Save tasaquino/a337f3627e1de96e678d7f947b88e058 to your computer and use it in GitHub Desktop.
ScopingFunctionApplyExternalThisExample
error?.apply {
Toast.makeText(this@AnyActivity, this.message, Toast.LENGTH_LONG).show()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment