Skip to content

Instantly share code, notes, and snippets.

@thenixan
Created January 12, 2018 16:04
Show Gist options
  • Save thenixan/4719ed0af04787e40b995df0a71ef1c1 to your computer and use it in GitHub Desktop.
Save thenixan/4719ed0af04787e40b995df0a71ef1c1 to your computer and use it in GitHub Desktop.
class ShareActivity : SplashedActivity() {
private val helloText by lazy { findViewById<TextView>(R.id.helloText) }
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)
getUser()?.let {
helloText.text = "${it.login}\n${intent.getStringExtra(Intent.EXTRA_TEXT)}"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment