Skip to content

Instantly share code, notes, and snippets.

@illuzor
Last active September 29, 2018 18:41
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save illuzor/45de8025572d1c62968401082519ac3e to your computer and use it in GitHub Desktop.
LOADED -> {
adapter.addItems(model.data.sortedBy { it.name })
showContent()
adapter.setOnclickListener { category ->
val intent = Intent(context, GalleryActivity::class.java)
intent.putExtra("category", category)
startActivity(intent)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment