Skip to content

Instantly share code, notes, and snippets.

@illuzor
Created September 22, 2018 21:16
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 illuzor/ac42fc98de5ba7b5f1c6ecf105e1c4fe to your computer and use it in GitHub Desktop.
Save illuzor/ac42fc98de5ba7b5f1c6ecf105e1c4fe to your computer and use it in GitHub Desktop.
LOADED -> {
showContent()
adapter.addItems(model.data)
adapter.setOnclickListener { filename ->
val intent = Intent(context, WallpaperActivity::class.java)
intent.putExtra("filename", filename)
intent.putExtra("category", category)
startActivity(intent)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment