Skip to content

Instantly share code, notes, and snippets.

@ravidsrk
Created July 31, 2017 18:54
Show Gist options
  • Save ravidsrk/a1420df5bb5533c2cf99d6064e8c266f to your computer and use it in GitHub Desktop.
Save ravidsrk/a1420df5bb5533c2cf99d6064e8c266f to your computer and use it in GitHub Desktop.
class DetailActivity : BaseActivity(), DetailMvpView, ErrorView.ErrorListener {
companion object {
val EXTRA_POKEMON_NAME = "EXTRA_POKEMON_NAME"
fun getStartIntent(context: Context, pokemonName: String): Intent {
val intent = Intent(context, DetailActivity::class.java)
intent.putExtra(EXTRA_POKEMON_NAME, pokemonName)
return intent
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment