Last active
September 12, 2017 09:36
-
-
Save hluhovskyi/0336401bab0adc103bc36aace6bdba6b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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