Skip to content

Instantly share code, notes, and snippets.

@illuzor

illuzor/CategoriesFragment.kt Secret

Last active Sep 29, 2018
Embed
What would you like to do?
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