Skip to content

Instantly share code, notes, and snippets.

@kendhia
Created September 7, 2017 12:55
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 kendhia/9dc6ffe3dc56b7336d26791704bcf8f6 to your computer and use it in GitHub Desktop.
Save kendhia/9dc6ffe3dc56b7336d26791704bcf8f6 to your computer and use it in GitHub Desktop.
Remove the use of transform object
private fun setVideoThumbnail(thumbnail: Bitmap) {
pictureImageView.visibility = View.GONE
videoImageView.setImageBitmap(thumbnail)
videoPlayImageView.visibility = View.VISIBLE
cancelImageView.visibility = View.VISIBLE
checkPostingEnabled()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment