Skip to content

Instantly share code, notes, and snippets.

@hluhovskyi
Created September 11, 2017 15:23
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 hluhovskyi/0cbea582fe52431743237054d8648a38 to your computer and use it in GitHub Desktop.
Save hluhovskyi/0cbea582fe52431743237054d8648a38 to your computer and use it in GitHub Desktop.
class OwnFragment : Fragment(), ContextProvider {
val errorMessage by string(R.string.error_message)
overrider fun provideContext() = context
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment