Skip to content

Instantly share code, notes, and snippets.

@NikolaDespotoski
Created July 22, 2020 18:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NikolaDespotoski/be98c7563acc2b96de4c9178d26a93bf to your computer and use it in GitHub Desktop.
Save NikolaDespotoski/be98c7563acc2b96de4c9178d26a93bf to your computer and use it in GitHub Desktop.
Chain activity result callbacks using plus operator
operator fun <O> ActivityResultCallback<O>.plus(another: ActivityResultCallback<O>) = ActivityResultCallback<O> {
this@plus.onActivityResult(it)
another.onActivityResult(it)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment