Skip to content

Instantly share code, notes, and snippets.

@hluhovskyi hluhovskyi/medium_14.kt
Last active Sep 12, 2017

What would you like to do?
val View.contextProvider: () -> Context
get() = this::getContext
val Activity.contextProvider: () -> Context
get() = { this }
val Fragment.contextProvider: () -> Context
get() = this::getContext
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.